← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #78504]: Default gateway set for each eth device

 

Question #78504 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/78504

actionparsnip proposed the following answer:
You are getting a default gateway for each device as it is being picked
up by dhcp. You can set the defaukt gateway for these and the remaining
info will be gained automagically.

auto lo eth1 eth0
iface lo inet loopback
iface eth0 inet dhcp
  gateway 0.0.0.0
iface eth1 inet static
 address 192.168.100.1
 netmask 255.255.255.0
 gateway 192.168.100.254
 broadcast 192.168.100.255
 network 192.168.100.0

now eth0 has no gateway. you could even set it to 127.0.0.1

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.