Skip to main content

Thread: How to allow ubuntu to only connect to internet from eth0


i have 2 nic's in ubuntu server. interface file looks this

# file describes network interfaces available on system
# , how activate them. more information, see interfaces(5).
# loopback network interface
auto lo
iface lo inet loopback
# primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.53
netmask 255.255.255.0
gateway 192.168.0.2
auto eth0:1
iface eth0:1 inet static
address 192.168.0.54
netmask 255.255.255.0
gateway 192.168.0.2
auto eth1
iface eth1 inet static
address 192.168.8.16
netmask 255.255.255.0
gateway 192.168.8.1
auto eth1:1
iface eth1:1 inet static
address 192.168.8.17
netmask 255.255.255.0
gateway 192.168.8.1

when try update ubuntu pressing apt-get update ubuntu tries on 192.168.8.17, , if 192.168.0.17 unavailable update fail.

when type apt-get upgrade use 192.168.0.54 upgrade.
want allow eth0(192.168.0.54 & 192.168.0.53) connect internet. eth1 used local.

can tell me do?




Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] How to allow ubuntu to only connect to internet from eth0


Ubuntu

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial