option domain-search "example.com";
option domain-name "other.com";
+ # MAC numbering scheme:
+ # NFSv3: last octect starts at 0x00 and works up
+
group {
# NFSv3 root=dhcp or root={/dev/,}nfs, use server-id
option root-path "/nfs/client";
option root-path "nfs:192.168.50.3:/nfs/client:wsize=4096";
host nfs3-4 {
- hardware ethernet 52:54:00:12:34:06;
+ hardware ethernet 52:54:00:12:34:03;
fixed-address 192.168.50.101;
}
}
+ # MAC numbering scheme:
+ # NFSv4: last octect starts at 0x80 and works up
+
group {
# NFSv4 root={/dev/,}nfs4, use server-id
option root-path "/client";
host nfs4-1 {
- hardware ethernet 52:54:00:12:34:03;
+ hardware ethernet 52:54:00:12:34:80;
fixed-address 192.168.50.101;
}
}
option root-path "192.168.50.2:/client";
host nfs4-2 {
- hardware ethernet 52:54:00:12:34:04;
+ hardware ethernet 52:54:00:12:34:81;
fixed-address 192.168.50.101;
}
}
option root-path "nfs4:192.168.50.3:/client";
host nfs4-3 {
- hardware ethernet 52:54:00:12:34:05;
+ hardware ethernet 52:54:00:12:34:82;
fixed-address 192.168.50.101;
}
}
option root-path "nfs4:192.168.50.3:/client:wsize=4096";
host nfs4-4 {
- hardware ethernet 52:54:00:12:34:07;
+ hardware ethernet 52:54:00:12:34:83;
fixed-address 192.168.50.101;
}
}
return 1
fi
+ # MAC numbering scheme:
+ # NFSv3: last octect starts at 0x00 and works up
+ # NFSv4: last octect starts at 0x80 and works up
+
client_test "NFSv3 root=dhcp DHCP path only" 52:54:00:12:34:00 \
"root=dhcp" 192.168.50.1 -wsize=4096 || return 1
client_test "NFSv3 root=dhcp DHCP proto:IP:path" 52:54:00:12:34:02 \
"root=dhcp" 192.168.50.3 -wsize=4096 || return 1
- client_test "NFSv3 root=dhcp DHCP proto:IP:path:options" 52:54:00:12:34:06 \
+ client_test "NFSv3 root=dhcp DHCP proto:IP:path:options" 52:54:00:12:34:03 \
"root=dhcp" 192.168.50.3 wsize=4096 || return 1
# There is a mandatory 90 second recovery when starting the NFSv4
# server, so put these later in the list to avoid a pause when doing
# switch_root
- client_test "NFSv4 root=nfs4 DHCP path only" 52:54:00:12:34:03 \
+ client_test "NFSv4 root=nfs4 DHCP path only" 52:54:00:12:34:80 \
"root=nfs4" 192.168.50.1 -wsize=4096 || return 1
- client_test "NFSv4 root=/dev/nfs4 DHCP path only" 52:54:00:12:34:03 \
+ client_test "NFSv4 root=/dev/nfs4 DHCP path only" 52:54:00:12:34:80 \
"root=/dev/nfs4" 192.168.50.1 -wsize=4096 || return 1
- client_test "NFSv4 root=nfs4 DHCP IP:path" 52:54:00:12:34:04 \
+ client_test "NFSv4 root=nfs4 DHCP IP:path" 52:54:00:12:34:81 \
"root=nfs4" 192.168.50.2 -wsize=4096 || return 1
- client_test "NFSv4 root=/dev/nfs4 DHCP IP:path" 52:54:00:12:34:04 \
+ client_test "NFSv4 root=/dev/nfs4 DHCP IP:path" 52:54:00:12:34:81 \
"root=/dev/nfs4" 192.168.50.2 -wsize=4096 || return 1
- client_test "NFSv4 root=dhcp DHCP proto:IP:path" 52:54:00:12:34:05 \
+ client_test "NFSv4 root=dhcp DHCP proto:IP:path" 52:54:00:12:34:82 \
"root=dhcp" 192.168.50.3 -wsize=4096 || return 1
- client_test "NFSv4 root=dhcp DHCP proto:IP:path:options" 52:54:00:12:34:07 \
+ client_test "NFSv4 root=dhcp DHCP proto:IP:path:options" 52:54:00:12:34:83 \
"root=dhcp" 192.168.50.3 wsize=4096 || return 1
}