Guest User

Untitled

a guest
Jan 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. root@test-instance-1:/# cat /etc/network/interfaces
  2. # This file describes the network interfaces available on your system
  3. # and how to activate them. For more information, see interfaces(5).
  4.  
  5. # The loopback network interface
  6. auto lo
  7. iface lo inet loopback
  8.  
  9. auto eth0
  10. iface eth0 inet static
  11. address 10.0.2.16
  12. netmask 255.255.255.0
  13. broadcast 10.0.2.255
  14. gateway 10.0.2.2
  15.  
  16.  
  17. auto eth1
  18. iface eth1 inet static
  19. address 10.0.4.16
  20. netmask 255.255.255.0
  21. broadcast 10.0.4.255
  22. gateway 10.0.2.2
  23.  
  24.  
  25.  
  26. root@test-instance-1:/# route -n
  27. Kernel IP routing table
  28. Destination Gateway Genmask Flags Metric Ref Use Iface
  29. 10.0.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
  30. 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  31. 0.0.0.0 10.0.2.2 0.0.0.0 UG 100 0 0 eth0
  32. root@test-instance-1:/#
Add Comment
Please, Sign In to add comment