DHCP gateway question
Here is my scenario:
I have two gateways, and a dhcp server.
When I setup my debian it takes a default gateway (192.168.1.254) which I do not want to use. I just want to use the other one (192.168.1.3).
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
I know how to do it with static IP, but not with DHCP.
Here is my interfaces:
debian:/etc/network# cat 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
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
And it is not taking the gateway I want, how to do it?