English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi,

I have a dhcp connection.
I have a computer with 2 ethernet cards on it.
eth0 and eth1(I've added eth1,a realtek).
I put the interwebz cable on eth0 and it works using the
following script to aquire an IP.
Code:
ifconfig eth0 down
ifconfig eth0 hw ether mac
ifconfig eth0 up
dhclient3 eth0
and I get an Ip for eth0 and all works well,I can ping,I can access
the interwebz no problem.
however,if I switch the cable to eth1 and I do
Code:
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth1 hw ether same_mac_as_for_eth0
ifconfig eth1 up
dhclient3 eth1
it tells me it has acquired an IP and all,but when I do
ping www.google.com I get unknown host www.google.com.
I also must note that there are no physical problems because
the led on the eth1 is blinking and its alive.
is there some kind of default ethernet interface wich I must set ?
what is the problem ?
why doesn't eth1 work like eth0 works ?
thank you

2007-12-22 16:45:14 · 4 answers · asked by Anonymous in Computers & Internet Computer Networking

it seems I had a very strange wiring problem.
the wire from one eth to the other was supposed
to have the colors in a certain order on one side
and it didn't have them that way so it didn't work

2007-12-23 03:22:02 · update #1

4 answers

Follow this link and correct the cable procedure.
http://whatis.techtarget.com/definition/0,,sid9_gci1059969,00.html

2007-12-22 17:00:20 · answer #1 · answered by AEJOO 2 · 0 1

It sounds like the gateway setting is not being moved to eth1.
Try setting the Gateway in your /etc/sysconfig/network-settings/ifcfg-eth1

Gateway=gate.way.ip.address

EDIT

Good Lord, folks..he doesn't have a wiring issue...did anyone read the whole problem?
He's just moving the known good cable from one ethernet card the the other, and it's getting dhcp info, but he can't ping or get anywhere...

I think you have a gateway issue...please try what I posted and let me know whatzup...
if it doesn't work, can you post the output of an
ifconfig
here?

2007-12-22 16:54:50 · answer #2 · answered by KeWr 5 · 0 0

eth0 and eth1 refer to different network devices. Generally, eth0 refers to LAN (ethernet cable) connections, whereas eth1(generally) refers to wireless.

Since you are only trying to connect through lan, all you need to use is eth0. Wireless is not going to work since you are not connecting to a network, thats why eth1 gets an unknown host, you have no internet connection.

2007-12-22 16:53:38 · answer #3 · answered by johnnyloot 3 · 0 0

You can not issue the same mac to 2 cards on the same machine. It will just lose packets this way. Why you want 2 cards going to the internet I don't know, it just causes delays while the machine determines which card to use.

2007-12-22 21:08:45 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers