Forums

Skip to content

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

[Solved] Ethernet - Multiple incompatible configurations

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

[Solved] Ethernet - Multiple incompatible configurations

  • Quote

Post by lyallp » Tue Jun 26, 2012 2:58 am

I have a gentoo amd64 laptop, with one network interface.

Usually, it's plugged into the office and uses DHCP.

However, occasionally I need to be in a lab environment where DHCP is not available, for reasons I won't go into. I have to setup a fixed IP address, whilst in the lab environment.

I had thought I would just setup an /etc/init.d/net.thelab symlink and update /etc/conf.d/net to reflect the required IP address, netmask and gateway.
Then, I setup a runlevel for thelab which turned of net.eth0 and started net.thelab.
However, this does not work, as the device /dev/thelab does not exist so when I try /etc/init.d/net.thelab start, it fails with a missing device.
Now I could manually create a symlink of /dev/thelab to /dev/eth0 but that seems all too much of a hack.

How should I proceed? Maybe a udev rule?

Any suggestions would be gratefully received :)
Last edited by lyallp on Tue Jun 26, 2012 5:15 am, edited 1 time in total.
...Lyall
Top
your_WooDness
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Thu Oct 25, 2007 9:01 am

  • Quote

Post by your_WooDness » Tue Jun 26, 2012 4:36 am

Hi,

any reasons for not using a Networkmanager? wicd e.g. also has a tui interface for non-X.

WooD
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Tue Jun 26, 2012 5:15 am

I found /etc/conf.d/net

fallback entries being the key !

Code: Select all

# General DHCP
config_eth0="dhcp"

# Lab area
fallback_eth0="10.100.100.20 netmask 255.255.255.0"
fallback_routes_eth0="10.2.25.0 netmask 255.255.255.0 via 10.100.100.1"
...Lyall
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Tue Jun 26, 2012 6:00 am

Even better solution can be found in this thread.
...Lyall
Top
Post Reply

4 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