Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Ex1
  2.  
  3. Kernel IP routing table
  4. Destination Gateway Genmask Flags Metric Ref Use Iface
  5. 195.11.14.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  6.  
  7.  
  8.  
  9. Ex2
  10.  
  11. pc1 can reach interfaces eth0 and eth1 of r1 and interface eth1 of r2( names of interfaces as in the figure)
  12. r1 can reach interface eth0 of pc1 and interface eth1 of r2
  13.  
  14. Ex3
  15.  
  16. route add -net 195.11.14.0 netmask 255.255.255.0 gw 100.0.0.9 dev eth1
  17.  
  18. Ex4
  19.  
  20. route add -net 100.0.0.8 netmask 255.255.255.252 gw 195.11.14.1 dev eth0
  21. route add -net 200.1.1.0 netmask 255.255.255.0 gw 195.11.14.1 dev eth0
  22.  
  23. Ex5
  24.  
  25. R1: route add default gw 100.0.0.10
  26. R2: route add default gw 100.0.0.9
  27.  
  28. Ex6
  29.  
  30. Kernel IP routing table
  31. Destination Gateway Genmask Flags Metric Ref Use Iface
  32. 192.168.20.192 * 255.255.255.0 U 0 0 0 eth0
  33. default 192.168.20.193 0.0.0.0 UG 0 0 0 eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement