Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ex1
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 195.11.14.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- Ex2
- pc1 can reach interfaces eth0 and eth1 of r1 and interface eth1 of r2( names of interfaces as in the figure)
- r1 can reach interface eth0 of pc1 and interface eth1 of r2
- Ex3
- route add -net 195.11.14.0 netmask 255.255.255.0 gw 100.0.0.9 dev eth1
- Ex4
- route add -net 100.0.0.8 netmask 255.255.255.252 gw 195.11.14.1 dev eth0
- route add -net 200.1.1.0 netmask 255.255.255.0 gw 195.11.14.1 dev eth0
- Ex5
- R1: route add default gw 100.0.0.10
- R2: route add default gw 100.0.0.9
- Ex6
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 192.168.20.192 * 255.255.255.0 U 0 0 0 eth0
- default 192.168.20.193 0.0.0.0 UG 0 0 0 eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement