LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-15-2003, 12:05 AM   #1
joshuapurcell
LQ Newbie
 
Registered: Nov 2003
Location: Dallas
Distribution: Ubuntu, RHEL3/4
Posts: 2

Rep: Reputation: 0
ppp0 uses eth0... but eth0 never activates


I have two NICs.. one (eth1) of which is doing nothing currently (will be for LAN) and the other (eth0) is connected to my DSL modem (ppp0). I'm using Redhat9.0, and when the network starts it brings up eth1 and ppp0 (and lo) usually without problems (sometimes ppp0 doesn't activate unless I do it manually). eth0 never activates.. in fact I've stopped it from automatically activating at boot since it never does anyway.
But how can my ppp0 activate, and I can connect to the internet without any problems but eth0 doesn't activate? If these are two separate logical devices on my PC (using the same hardware), then should I assign an address to eth0 as I do currently with eth1? Let me know a printout of some files will help.
 
Old 12-15-2003, 12:41 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
show us the output of these commands...

ifconfig -a
cat /etc/modules.conf
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/network-scripts/ifcfg-ppp0

what kind of nic is it? Type of modem?
 
Old 12-16-2003, 11:48 PM   #3
joshuapurcell
LQ Newbie
 
Registered: Nov 2003
Location: Dallas
Distribution: Ubuntu, RHEL3/4
Posts: 2

Original Poster
Rep: Reputation: 0
Here is the info that you ask for and a little more in case it can help.

Here's what I got:
-linux PC with two NICs; eth0 connected to DSL modem and eth1 connected to LAN
-I am assuming my default route needs to be ppp0 (correct me if wrong)
-my eth0 is never activated with current setup, is this because I don't assign it an IP address?
-let me know if you see anything that doesn't look right with the below info... thanks.

/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
#local info:
127.0.0.1 localhost.localdomain localhost #loopback
192.168.1.1 linux.joshuapurcell linux #eth1
#LAN info:
192.168.1.2 boss.joshuapurcell boss #main PC
192.168.1.3 lt.joshuapurcell lt #laptop
---------------------------------------------------------------------------------------
/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=linux.joshuapurcell
FORWARD_IPV4=yes
GATEWAY=192.168.1.1
GATEWAYDEV=eth0
---------------------------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
---------------------------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth1:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
---------------------------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-pp0:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=yes
PEERDNS=yes
TYPE=xDSL
DEVICE=ppp0
BOOTPROTO=dialup
ONBOOT=yes
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
PERSIST=yes
SYNCHRONOUS=no
DEFROUTE=yes
USER=bobleroy
PROVIDER=Advantex
ETH=eth0
---------------------------------------------------------------------------------------
route table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
info1.masterlin * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default info1.masterlin 0.0.0.0 UG 0 0 0 ppp0
---------------------------------------------------------------------------------------
/etc/modules.conf:
alias eth0 8139too
alias eth1 tulip
alias usb-controller usb-uhci
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
---------------------------------------------------------------------------------------
ifconfig -a:
eth0 Link encap:Ethernet HWaddr 00:10:B5:6F:FA:99
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:112536 errors:0 dropped:0 overruns:0 frame:0
TX packets:116621 errors:0 dropped:0 overruns:0 carrier:0
collisions:39 txqueuelen:100
RX bytes:64732311 (61.7 Mb) TX bytes:13616717 (12.9 Mb)
Interrupt:5 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:C0:F0:3F:39:06
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:1816 errors:1 dropped:0 overruns:0 frame:0
TX packets:1089 errors:19 dropped:0 overruns:0 carrier:38
collisions:0 txqueuelen:100
RX bytes:180329 (176.1 Kb) TX bytes:107256 (104.7 Kb)
Interrupt:3 Base address:0x400

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:320 errors:0 dropped:0 overruns:0 frame:0
TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28455 (27.7 Kb) TX bytes:28455 (27.7 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:66.228.158.70 P-t-P:66.228.128.7 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3858 errors:0 dropped:0 overruns:0 frame:0
TX packets:4237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2947863 (2.8 Mb) TX bytes:536462 (523.8 Kb)
 
Old 12-17-2003, 12:52 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
It seems that eth0 is configured and working. It does not have an ip address, is that what your refering to?

I don't think it needs one because the routing table is not using eth0, it is using ppp0.

eth0 is setup to activae on boot. I would change it in the ifcfg-eth0 file

ONBOOT=no


see if your ppp0 script is bringing up eth0

If ppp0 is not coming up on boot then you might want to look in /var/log/messages after bootup for errors and post them.

Last edited by DavidPhillips; 12-17-2003 at 12:55 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 / eth1 and ppp0 ikarus Mandriva 8 11-26-2005 08:49 PM
eth0+ppp0 routing kwlg Linux - Networking 5 07-18-2005 05:50 PM
eth0 Activates but no internet! benrose111488 Linux - Networking 8 06-21-2004 04:42 PM
eth0 no longer activates during startup zombiedeth Linux - Networking 2 03-03-2004 01:19 AM
eth0 eth1 ppp0 janisj Linux - Networking 2 07-06-2003 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration