LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-13-2006, 02:14 AM   #1
jonnyhashem
Member
 
Registered: Jul 2005
Location: usa
Distribution: csac
Posts: 36

Rep: Reputation: 15
Renaming eth1 to eth0


Hi:
I had 2 ethernet cards on my system external(eth0) and internal card(eth1), then i removed the external card(eth0) and the internal one still named by eth1 ,so i swapped the 2 mac address in /etc/iftab and its done internal card (eth1) named by eth0 ,but the problem is internet didnt came up again on eth0 despite i configured the connection on eth0.
i did ifconfig and here what i had :

[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:F11:3E:95
inet addr:195.112.XXX.XXX Bcast:195.112.XXX.XXX Mask:255.255.XXX.XXX
inet6 addr: fe80::20c:f1ff:fed1:3e95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:6026 (5.8 Kb)
Base address:0xd9c0 Memory:fe9e0000-fea00000


It taked the ip address and everything but internet didnt came up,so whats the problem here?
 
Old 01-13-2006, 07:48 AM   #2
goestin
Member
 
Registered: Nov 2004
Location: Netherlands (east)
Distribution: debian, suse, novell linux desktop
Posts: 81

Rep: Reputation: 15
Can't you ping anything? not even the gateway or another node in the network?

which distro do you use?

cheers
 
Old 01-13-2006, 05:15 PM   #3
jonnyhashem
Member
 
Registered: Jul 2005
Location: usa
Distribution: csac
Posts: 36

Original Poster
Rep: Reputation: 15
Mandrake

Hi:
I use Mandrake 10.0 ,i did the ping to the gateway and here what i have got:
[root@beigraph root]# ping 195.112.XXX.XXX
PING 195.112.XXX.XXX (195.112.XXX.XXX) 56(84) bytes of data.
64 bytes from 195.112.XXX.XXX: icmp_seq=1 ttl=255 time=27.0 ms
64 bytes from 195.112.XXX.XXX: icmp_seq=2 ttl=255 time=31.4 ms
64 bytes from 195.112.XXX.XXX: icmp_seq=3 ttl=255 time=31.6 ms
64 bytes from 195.112.XXX.XXX: icmp_seq=4 ttl=255 time=31.9 ms

--- 195.112.212.217 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 27.058/30.532/31.966/2.013 ms

Regards;
jonny
 
Old 01-13-2006, 05:38 PM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Code:
root@linuxbox:~# netstat -r
root@linuxbox:~# cat /etc/resolv.conf
root@linuxbox:~# traceroute 64.179.4.149
post the results of those, should help narrow down the problem some more.
 
Old 01-14-2006, 04:36 AM   #5
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Maybe your isp only accepts your old MAC address, since you have removed a card your MAC address has changed. Check with your ISP.
 
Old 01-14-2006, 02:47 PM   #6
jonnyhashem
Member
 
Registered: Jul 2005
Location: usa
Distribution: csac
Posts: 36

Original Poster
Rep: Reputation: 15
the results

HI:
These are the results of your commands:
[root@beigraph root]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
195.112.212.216 * 255.255.255.248 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
.default 195.112.212.217 0.0.0.0 UG 0 0 0 eth1

[root@beigraph root]# cat /etc/resolv.conf
# search 10.129.198.129 10.129.198.129 10.129.198.129 10.129.198.129 10.129.198.129 cyberia.net.lb
nameserver 127.0.0.1
nameserver 195.112.195.35
nameserver 195.112.195.34
# nameserver 192.168.8.1
# nameserver 207.226.50.2
# nameserver 195.112.214.34

[root@beigraph root]# traceroute 64.179.4.149
traceroute to 64.179.4.149 (64.179.4.149), 30 hops max, 38 byte packets
1 195.112.212.217 (195.112.212.217) 27.954 ms 35.390 ms 35.469 ms
2 172.16.2.6 (172.16.2.6) 64.947 ms 64.947 ms 65.468 ms
3 router (195.112.192.126) 54.973 ms 60.421 ms 60.618 ms
4 63.218.55.53 (63.218.55.53) 145.353 ms 145.892 ms 156.445 ms
5 pos6-2.br02.ash01.pccwbtn.net (63.218.44.74) 229.944 ms 245.920 ms *
6 wiltel.ge11-1.br02.ash01.pccwbtn.net (63.218.94.126) 241.900 ms 235.934 ms 276.963 ms
7 hrndva1wcx2-pos11-0.wcg.net (64.200.89.137) 250.961 ms 240.914 ms 246.948 ms
8 nycmny2wcx2-pos1-0-oc192.wcg.net (64.200.210.177) 236.113 ms 256.917 ms 245.943 ms
9 nycmny2wcx3-pos11-3.wcg.net (64.200.68.98) 496.901 ms 241.423 ms 241.073 ms
10 nycmny1wce2-pos3-0.wcg.net (64.200.68.102) 245.275 ms 240.920 ms 236.042 ms
11 nycmny1wce2-choiceone-5-0.wcg.net (65.77.98.82) 311.379 ms 246.239 ms 260.779 ms
12 tr-5-1007-bflo-shasta.choiceone.net (64.65.210.190) 256.938 ms 271.333 ms 270.923 ms
13 web1.linuxquestions.org (64.179.4.149) 256.452 ms 260.959 ms 250.936 ms


And for pk21 question , The internet is already now on internal card (eth1) and its working fine , but what i want is to change the name of internal card from eth1 to eth0.
 
Old 01-15-2006, 07:03 AM   #7
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Then isnt the only thing you need adjusting your /etc/modules.conf?
 
Old 01-16-2006, 03:06 AM   #8
jonnyhashem
Member
 
Registered: Jul 2005
Location: usa
Distribution: csac
Posts: 36

Original Poster
Rep: Reputation: 15
i have checked

HI:
I have checked /etc/modules.conf , and i didnt find anything.
 
Old 01-16-2006, 04:54 AM   #9
xstefanox
Member
 
Registered: Mar 2005
Location: São Paulo - Brazil
Distribution: Debian
Posts: 45

Rep: Reputation: 15
Configure your both cards in the /etc/sysconfig/network-scripts/ifcfg-ethX (Where "X" is the number of your network card give by the "dmesg" command). If there's not one for your card, create it, following the rules in that other files.

Make sure that the modules are up (But since the "dmesg" command shows both cards, there's no worry about that).

Since you're connecting through ADSL or something like it, you could be blocked by your ISP, just like pl21 said, so you should confirm this information, but first you should try to configure your connection again with adsl-setup (Or something like it. I'm not a Mandrake user, sorry).
 
  


Reply



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
how to use eth1 instead of eth0 WindozeFREE Linux - Networking 8 03-22-2005 03:04 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

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

All times are GMT -5. The time now is 04:02 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