Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
STOP interface from coming up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bulash
n00b
n00b


Joined: 14 Apr 2004
Posts: 63

PostPosted: Sat Oct 23, 2004 5:10 am    Post subject: STOP interface from coming up Reply with quote

Hi all,
I have a Laptop with a wireless (eth0) and cable (eth1) interface. As I need a fixed IP address at work (using eth1) I use ifconfig_fallback in /etc/conf.d/net. I also use ifplugd (only for eth1). The problem I have is that whenever I boot my computer at home, where I use the wireless interface, eth1 is brought up too with the fallback settings. This would be fine with me if the default gateway would not be set to the one I use for work. As this always happens I have to stop eth1 and restart eth0 each time I boot my computer at home. Ifplugd works fine, but it seems the init script is executed when booting and thus sets the default gateway even when no cable is plugged...

here are my /etc/conf.d/net:
Code:

ifconfig_eth0=("dhcp")
dhcpcd_eth0=("-t 10 -N -R -D")
ifconfig_eth1=("dhcp")
dhcpcd_eth1=("-t 5 -N -R -D")

gateway=("eth1/xxx.xxx.xxx.xxx")

ifconfig_fallback_eth1=("xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx netmask 255.255.255.0")

and /etc/conf.d/ifplugd (ifplugd-0.13-r1)
Code:

INTERFACES="eth1"
ARGS="-f -u0 -d20 -w -mm"

Thanks in advance...
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sat Oct 23, 2004 5:28 am    Post subject: Reply with quote

What's the output of
Code:
# rc-update show
? You may need to remove the net.eth1 startup script from the initialization:
Code:
# rc-update del net.eth1

_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Sat Oct 23, 2004 5:53 am    Post subject: Reply with quote

Documentation, Tips & Tricks has some guides about laptops and switching networks. Maybe one of them can help.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
bulash
n00b
n00b


Joined: 14 Apr 2004
Posts: 63

PostPosted: Sat Oct 23, 2004 6:21 am    Post subject: Reply with quote

No, I don't have any of the net.eth? in any runlevel. I know that net.eth0 is called by the hotplug scripts. Not too sure about eth1.

I suspect it might have something to do with the hotplug stuff, though, and not with ifplugd as I don't run into problems when I manually start ifplugd...

Guess I'll have a look at the hotplug scripts then.
Back to top
View user's profile Send private message
bulash
n00b
n00b


Joined: 14 Apr 2004
Posts: 63

PostPosted: Sat Oct 23, 2004 5:29 pm    Post subject: Reply with quote

Seems my problem was indeed due to the hotplug scripts...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum