Hi misc!
I have a home router which is connected to a DSL line as its primary
connection, with static IPs and the like. I have a secondary cable
connection with a dynamic IP, and I have to use dhcp to get the IP for
this link.
I have the following in my dhclient.conf:
send host-name "paladin";
supersede host-name "paladin";
supersede routers 212.208.87.225;
supersede domain-name-servers 10.0.0.1;
request subnet-mask, broadcast-address;
After boot, my routing table shows:
$ route -n show -inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu
Interface
default 213.208.87.225 UGS 9 985236 - fxp0
10.0.0/24 link#2 UC 5 0 - fxp1
10.0.0.1 00:90:27:77:19:c0 UHLc 1 1428 - lo0
10.0.0.10 00:50:8d:e9:2f:f1 UHLc 1 12174 - fxp1
10.0.0.12 00:20:ed:b2:96:da UHLc 0 695982 - fxp1
10.0.0.14 00:10:b5:0b:63:e3 UHLc 0 14 - fxp1
10.0.0.64 00:a0:d1:b8:ca:69 UHLc 1 117289 - fxp1
127/8 127.0.0.1 UGRS 0 0 33224 lo0
127.0.0.1 127.0.0.1 UH 5 29 33224 lo0
213.208.87.224/29 link#1 UC 1 0 - fxp0
213.208.87.225 00:14:7f:1a:dd:e2 UHLc 1 10 - fxp0
213.208.87.227 127.0.0.1 UGHS 0 0 33224 lo0
213.208.87.228 127.0.0.1 UGHS 0 0 33224 lo0
213.208.87.229 127.0.0.1 UGHS 0 0 33224 lo0
213.208.87.230 127.0.0.1 UGHS 0 0 33224 lo0
224/4 127.0.0.1 URS 0 0 33224 lo0
$
Then, I run dhclient.
$ sudo dhclient fxp2
Password:
DHCPREQUEST on fxp2 to 255.255.255.255 port 67
DHCPREQUEST on fxp2 to 255.255.255.255 port 67
DHCPACK from 10.225.144.1
bound to 82.10.215.207 -- renewal in 49967 seconds.
$
All internet connectivity is lost.
Routing table:
$ route -n show -inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu
Interface
10.0.0/24 link#2 UC 6 0 - fxp1
10.0.0.1 00:90:27:77:19:c0 UHLc 0 1428 - lo0
10.0.0.10 00:50:8d:e9:2f:f1 UHLc 1 12926 - fxp1
10.0.0.12 00:20:ed:b2:96:da UHLc 1 706520 - fxp1
10.0.0.14 00:10:b5:0b:63:e3 UHLc 0 18 - fxp1
10.0.0.64 link#2 UHLc 1 117289 - fxp1
10.0.0.100 00:12:17:c2:8a:30 UHLc 0 1 - fxp1
82.10.212/22 link#3 UC 0 0 - fxp2
82.10.215.207 127.0.0.1 UGHS 0 0 33224 lo0
127/8 127.0.0.1 UGRS 0 0 33224 lo0
127.0.0.1 127.0.0.1 UH 6 29 33224 lo0
213.208.87.224/29 link#1 UC 1 0 - fxp0
213.208.87.225 00:14:7f:1a:dd:e2 UHLc 0 10 - fxp0
213.208.87.227 127.0.0.1 UGHS 0 0 33224 lo0
213.208.87.228 127.0.0.1 UGHS 0 0 33224 lo0
213.208.87.229 127.0.0.1 UGHS 0 0 33224 lo0
213.208.87.230 127.0.0.1 UGHS 0 0 33224 lo0
224/4 127.0.0.1 URS 0 0 33224 lo0
$
I have to issue the following command to restore connectivity:
$ sudo route add default `cat /etc/mygate`
add net default: gateway 213.208.87.225
$
Can anyone offer any advice?
Cheers
James