Thanks -c and Tyler,
I started with Tyler's code, hadn't noticed that eth1 was default, that's very strange, thought eth0 was normally default. When I installed ubuntu I noticed the "import daemon" running, could it have imported this from core6 or XP?
anyway I got very unexpected results.
mike@ubuntu7:~$ sudo route del default
mike@ubuntu7:~$ sudo route add default gw 10.1.1.1 eth0
SIOCADDRT: Network is unreachable
mike@ubuntu7:~$
mike@ubuntu7:~$ sudo route add default gw eth0
eth0: Unknown host
mike@ubuntu7:~$ sudo route add default eth0
SIOCADDRT: No such device
mike@ubuntu7:~$
Then I did the dhclient thing.
mike@ubuntu7:~$ sudo dhclient eth0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:14:85:f4:2d:3d
Sending on LPF/eth0/00:14:85:f4:2d:3d
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 10.1.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.1.1.1
SIOCADDRT: Network is unreachable
bound to 58.108.37.18 -- renewal in 53 seconds.
Then the route -n
mike@ubuntu7:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
58.108.37.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
mike@ubuntu7:~$
Then the ifconfig -a
mike@ubuntu7:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:14:85:F4:2D:3D
inet addr:58.108.37.18 Bcast:58.108.37.255 Mask:255.255.255.0
inet6 addr: fe80::214:85ff:fef4:2d3d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16852 (16.4 KiB) TX bytes:8364 (8.1 KiB)
Interrupt:20 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:E0:29:0E:A3:7F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:9975 (9.7 KiB)
Interrupt:22 Base address:0xc400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6176 (6.0 KiB) TX bytes:6176 (6.0 KiB)
mike@ubuntu7:~$
Now I've booted back into core6 and done the route -n
[root@core6 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.31.137.132 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
58.108.37.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 211.31.137.132 0.0.0.0 UG 0 0 0 eth1
[root@core6 ~]#
Then I've done some whois checks for the above urls.
58.108.37.0 & 211.31.137.132 both belong to my internet provider 169.--- and 192. --- are IANA, but I guess you guys know that.
I think it's a double dhcp situation, the ADSL modem applies to my ISP for an address, then this computer applies to the modem, seems the modem just passes on what it's received rather than something in the 10.1.1.0 range.
I think in the past I have managed to set this computer in static mode using 10.1.1.3 as this address and gateway as 10.1.1.1