Well I don't want eth0 to up at boot because then it gives itself an IP address rather than using ppp0.
And, my route table is all messed up somehow.
My main problem is I am swiching distros from Mandrake (RPM based kernel 2.4) to Ubuntu (Debian based, kernel 2.6) so all my config files from Mandrake are useless.
For example my configuration on my existing Mandrake server is as follows:
/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
USERCTL=no
ONBOOT=no
BOOTPROTO=dhcp
IPADDR=
NETMASK=
NETWORK=0.0.0.0
BROADCAST=255.255.255.255
DHCP_CLIENT=/sbin/dhclient
/etc/sysconfig/network-scripts/ifcfg-eth1
Code:
DEVICE=eth1
USERCTL=no
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
DHCP_CLIENT=/sbin/dhcpcd
ifconfig (Mandrake)
Code:
eth0 Link encap:Ethernet HWaddr 00:09:6B:63:15:4E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1428644 errors:5404 dropped:0 overruns:0 frame:0
TX packets:1301018 errors:0 dropped:0 overruns:0 carrier:0
collisions:5404 txqueuelen:100
RX bytes:1270698349 (1211.8 Mb) TX bytes:227804479 (217.2 Mb)
Interrupt:24 Memory:fbff0000-fc000000
eth1 Link encap:Ethernet HWaddr 00:09:6B:63:15:4F
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1235481 errors:0 dropped:0 overruns:0 frame:0
TX packets:1529784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:236154610 (225.2 Mb) TX bytes:1451267485 (1384.0 Mb)
Interrupt:25 Memory:fbfe0000-fbff0000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:499685 errors:0 dropped:0 overruns:0 frame:0
TX packets:499685 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:49578901 (47.2 Mb) TX bytes:49578901 (47.2 Mb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:XXX.XXX.XXX.XXX P-t-P:XXX.XXX.XXX.XXX Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3318 (3.2 Kb) TX bytes:342 (342.0 b)
Notice eth0 DOES NOT HAVE AN IP ADDRESS.
Of course on Debian everything is done differently.
I found a file /etc/network/interfaces wich I assume does what my above files do, but the syntax is all different:
Code:
# 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
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
As you can see my eth1, which I would like it to be a static IP address (not configured to be static yet) is not even listed.
Here is my Ubuntu ifconfig:
Code:
eth0 Link encap:Ethernet HWaddr 00:10:18:24:C9:4B
inet addr:192.168.1.198 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::210:18ff:fe24:c94b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8975 errors:13 dropped:0 overruns:0 frame:0
TX packets:6348 errors:0 dropped:0 overruns:0 carrier:0
collisions:13 txqueuelen:1000
RX bytes:11856108 (11.3 MiB) TX bytes:595537 (581.5 KiB)
Interrupt:90
eth1 Link encap:Ethernet HWaddr 00:14:5E:20:32:02
inet addr:192.168.1.199 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:5eff:fe20:3202/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16837 errors:0 dropped:0 overruns:0 frame:0
TX packets:16763 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1520865 (1.4 MiB) TX bytes:14536916 (13.8 MiB)
Interrupt:177
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:10793 errors:0 dropped:0 overruns:0 frame:0
TX packets:10793 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3579997 (3.4 MiB) TX bytes:3579997 (3.4 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:XXX.XXX.XXX.XXX P-t-P:XXX.XXX.XXX.XXX Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:8912 errors:0 dropped:0 overruns:0 frame:0
TX packets:6490 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:11614467 (11.0 MiB) TX bytes:441069 (430.7 KiB)
Everything works great in Mandrake, but in Ubuntu I have a helluva time, from the server I can access EITHER the Lan OR the Internet via Lynx but not both at the same time, and the LAN cannot access the Internet, but sometimes it can if I mess with the route command enough.... I also have to do pon and poff several times before it works. So I think if I could configure it the way I have Mandrake, it would work. My belief is that eth0 and ppp0 are arguing. I have to do route add commands. Here is my routing tables
Mandrake
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
XXX.XXX.XXX.51 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 XXX.XXX.XXX.51 0.0.0.0 UG 0 0 0 ppp0
Ubuntu
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
64.230.197.51 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0