Click to See Complete Forum and Search --> : eth1 not coming up
BizHat.com
02-28-2003, 02:29 PM
hi,
My pc have two LAN Cards. One conntected to Cable Modem (eth0) other connected to my other pc running windows 98.
I have installed RH 7.3. On which i could not get eth1.
When i installed RH 7.2, i have enabled eth1 through linuxconfig. But on RH 7.3 there is no linuxconfig. I have searched and found linuxconfig is no longer shiped in RH Linux.
How i make my eth1 working ?
Regards,
Yujin Boby
je_fro
02-28-2003, 02:41 PM
You need to find out what kind of card, then find out what module it needs. Load the module like:
modprobe modulename
Also, to get information about what's going on, try:
dmesg | grep eth
Post back when you get the info...
http://www.google.com/linux
BizHat.com
02-28-2003, 03:39 PM
Hi,
Thanks for the reply.
Please find the dmesg|grep eth
[root@server2 etc]# dmesg | grep eth
eth0: RealTek RTL8139 Fast Ethernet at 0xd08b4f00, 00:50:fc:40:63:34, IRQ 10
eth0: Identified 8139 chip type 'RTL-8139C'
eth1: RealTek RTL8139 Fast Ethernet at 0xd08b6e00, 00:50:bf:12:45:73, IRQ 5
eth1: Identified 8139 chip type 'RTL-8139C'
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 41e1.
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 41e1.
Both cards are RealTek.
I think both are loaded, just need to activate eth1, this i have done on another vershion of linux using linuxconf, but linuxconf not available on RH 7.3
How do i make it working ?
Regards,
Yujin Boby
je_fro
02-28-2003, 03:49 PM
One command to look at is:
ifconfig
try
man ifconfig
Do you want to set it up DHCP? Or connected to an internal net?
try:
ifconfig eth1 up
That'll bring it up.
If you want networking, here's an example:
ifconfig eth1 192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0
route add -net default gw 192.168.0.1 netmask 0.0.0.0 metric 1
je_fro
02-28-2003, 04:00 PM
Make sure you've got MASQUERADE enabled.
Look for the HOWTO's on MASQUERADE, or IPMASQUERADE
BizHat.com
02-28-2003, 04:01 PM
Thanks for the reply.
ifconfig eth1 up
have done the work.
[root@server2 etc]# ifconfig eth1 up
[root@server2 etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:40:63:34
inet addr:202.88.224.51 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26787 errors:0 dropped:0 overruns:0 frame:0
TX packets:11333 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:10618725 (10.1 Mb) TX bytes:1825294 (1.7 Mb)
Interrupt:10 Base address:0x4f00
eth1 Link encap:Ethernet HWaddr 00:50:BF:12:45:73
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x6e00
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:282 errors:0 dropped:0 overruns:0 frame:0
TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38068 (37.1 Kb) TX bytes:38068 (37.1 Kb)
Now the problem is after i restart network, i could only get eth0.
[root@server2 etc]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
[root@server2 etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:40:63:34
inet addr:202.88.224.51 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26915 errors:0 dropped:0 overruns:0 frame:0
TX packets:11384 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:10634294 (10.1 Mb) TX bytes:1842400 (1.7 Mb)
Interrupt:10 Base address:0x4f00
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:282 errors:0 dropped:0 overruns:0 frame:0
TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38068 (37.1 Kb) TX bytes:38068 (37.1 Kb)
[root@server2 etc]#
How to make eth1 UP by default ?
Regards,
Yujin Boby
BizHat.com
02-28-2003, 04:06 PM
I could connect to internet.
Internet via eth0 to cable modem.
Only problem is i could not ping from other PC Win 98 that is connected to eth1.
ifconfig eth1 up solves the problem, but how to make it up permenently ?
Regards,
Yujin
je_fro
02-28-2003, 04:09 PM
For RedHat 8.0 I'd try the "Make Internet Connection" wizard under System Settings (or tools or whatever...)
From the terminal you can do:
neat
It'll bring up a NetConfig tool.
I'm not on RedHat now, so I can't be more precise.
je_fro
02-28-2003, 04:14 PM
You'll need NAT and MASQUERADE to get the 98 box online. You'll need to add some rules to iptables.
Have a look at RedHat's Security Guide, or Admin. Guide. Look for iptables, nat, and masquerade. It's too much for me to type in.
BizHat.com
02-28-2003, 04:24 PM
Thanks je_fro for the help.
Its done.
neat is what i want. I have activated eth1 when started. Also asigned ip address as this pc is sharing internet with other pc. Will be trying netsharing next day.
Thanks again for the time.
Regards,
Yujin
mdwatts
02-28-2003, 06:42 PM
Also add
alias eth0 <module>
alias eth1 <module>
to /etc/modules.conf and then run
depmod -ae
(both as root)