Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Two Nic, how to set which is eth0 and which is eth1

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
greg
n00b
n00b
User avatar
Posts: 42
Joined: Tue Apr 16, 2002 11:42 pm
Location: HFX/NS/CA

Two Nic, how to set which is eth0 and which is eth1

  • Quote

Post by greg » Wed Jun 25, 2003 10:24 am

I've had two network cards in my machine for well over a year without trouble. Since my last update which included the baselayout my cards have swapped eth0 became eth1 and eth1->eth0. This cause my internet connection fail and I spend a while trying to figure out what is wrong until I ran 'dhcp eth1' and got an IP... Is there a way to set which driver is eth0/1? For now I've disable the 2nd nic's kernel modules so they to load and take eth0, given that I'm not using the second nic right now.

Greg
Top
thofra
n00b
n00b
Posts: 6
Joined: Wed Oct 23, 2002 5:10 pm

  • Quote

Post by thofra » Wed Jun 25, 2003 11:09 am

a short question
do you have two identical network cards(both REALTEK 8139)?
Top
thofra
n00b
n00b
Posts: 6
Joined: Wed Oct 23, 2002 5:10 pm

  • Quote

Post by thofra » Wed Jun 25, 2003 11:13 am

make two entries in /etc/modules.conf

e.g.
alias eth0 8139too
alias eth1 3c59x
Top
greg
n00b
n00b
User avatar
Posts: 42
Joined: Tue Apr 16, 2002 11:42 pm
Location: HFX/NS/CA

  • Quote

Post by greg » Wed Jun 25, 2003 11:41 am

The network cards are different. Thanks a lot for the information!

Greg
Top
Vxster
n00b
n00b
Posts: 66
Joined: Thu Jan 16, 2003 3:05 pm
Location: London, UK

  • Quote

Post by Vxster » Wed Jun 25, 2003 2:16 pm

Just a quick question...if I have both of my NIC drivers compiled in to the kernel (eepro100 and tigon3), how do I choose which is which?
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Wed Jun 25, 2003 2:22 pm

see 'dmesg | grep eth', thats where the cards are identified...
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Top
di1bert
l33t
l33t
User avatar
Posts: 963
Joined: Thu May 16, 2002 10:00 am
Location: Oslo, Norway

  • Quote

Post by di1bert » Sun Jul 20, 2003 2:29 am

Will this only work if the NIC drivers are compiled as modules ?
I ask as I have two NIC's in this machine and I compile the drivers into the kernel (don't ask me why though)...

Would it be possible to do something similar ?

--di1bert (~matt)
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic