Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@test-instance-1:/# cat /etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- auto eth0
- iface eth0 inet static
- address 10.0.2.16
- netmask 255.255.255.0
- broadcast 10.0.2.255
- gateway 10.0.2.2
- auto eth1
- iface eth1 inet static
- address 10.0.4.16
- netmask 255.255.255.0
- broadcast 10.0.4.255
- gateway 10.0.2.2
- root@test-instance-1:/# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 10.0.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
- 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- 0.0.0.0 10.0.2.2 0.0.0.0 UG 100 0 0 eth0
- root@test-instance-1:/#
Add Comment
Please, Sign In to add comment