View previous topic :: View next topic |
Author |
Message |
maddios n00b
Joined: 03 Sep 2007 Posts: 2
|
Posted: Mon Sep 03, 2007 2:22 am Post subject: eth0 fails to start |
|
|
Hey guys, I've been running gentoo as my personal QoS internet router.
It's configured with iptables, tc, dnsmasq
it's got two network cards,
eth0 is the LAN NIC
and eth1 is my WAN NIC
All has been well, but last night I decided to get my box to reboot normally (enabled ACPI) and now whenever I try to start net.eth0 i get an error message stating "192.168.0.1 already taken by eth0".
How could that be? I'm restarting/starting eth0 itself and it's set to use 192.168.0.1.
Please help, I've switched my box to use 192.168.0.2 in /etc/conf.d/net but i generally don't like not knowing why this went bad, I can use any ip other than .1 in my config file.
The config file is as follows:
config_eth1=( "dhcp" )
dhcp_eth1="nodns nontp nonis"
config_eth0=( "192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" )
config_eth0 was set to config_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" ) initially and changing it to 2 made my network work again. but now using .2
And i'm not sure where else 192.168.0.1 could be defined. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Mon Sep 03, 2007 9:04 am Post subject: Re: eth0 fails to start |
|
|
A guess:
Put eth0 as first.
The config file is as follows:
config_eth0=( "192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" )
config_eth1=( "dhcp" )
dhcp_eth1="nodns nontp nonis" |
|
Back to top |
|
|
maddios n00b
Joined: 03 Sep 2007 Posts: 2
|
Posted: Mon Sep 03, 2007 6:12 pm Post subject: |
|
|
AHHH finally figured it out!
Apparently someone in my house hooked up an old DLink router as a Wi-Fi passthru but didn't disable the DHCP on it, so it was serving its own ip as 192.168.0.1, so when the router restarted it already sensed .1 from the dlink.
So now it's all good.
As far as testing this in the future. Is there a command to see the network topography in linux? It'd be nice to be able to tell all connected computers to my router and to see detailed information about them.
Thanks |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Mon Sep 03, 2007 6:46 pm Post subject: |
|
|
google for vpn virtual private network
wireshark is a sniffer
I suggest you to set up a vpn => openvpn; depends on router, .... |
|
Back to top |
|
|
|