43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
Commands for Problem 2.3:
|
|
|
|
Figure 3
|
|
|
|
sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sysctl -w net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
ip -6 a a fdee:af92:9c96:1001:0000:0000:0000:0001/64 dev h1-eth0
|
|
|
|
ip -6 n a fdee:af92:9c96:1001:0000:0000:0000:1001 lladdr 00:00:00:01:01:00 dev h1-eth0
|
|
|
|
ip -6 r a fdee:af92:9c96:1002:0000:0000:0000:0001/64 via fdee:af92:9c96:1001:0000:0000:0000:1001 dev h1-eth0
|
|
|
|
|
|
|
|
Figure 4
|
|
|
|
sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sysctl -w net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
ip -6 a a fdee:af92:9c96:1002:0000:0000:0000:0002/64 dev h2-eth0
|
|
|
|
ip -6 n a fdee:af92:9c96:1002:0000:0000:0000:1001 lladdr 00:00:00:02:02:00 dev h2-eth0
|
|
|
|
ip -6 r a fdee:af92:9c96:1001:0000:0000:0000:0001/64 via fdee:af92:9c96:1002:0000:0000:0000:1001 dev h2-eth0
|
|
|
|
|
|
Figure 5
|
|
|
|
sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sysctl -w net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
ip tunnel add 6in4 mode sit remote 10.0.1.254 local 10.0.1.1 ttl 64
|
|
|
|
ip link set 6in4 up mtu 1400
|
|
|
|
ip addr add fdee:af92:9c96:1001:0000:0000:0000:0001/64 dev 6in4
|
|
|
|
ip route add ::/0 dev 6in4
|