slackware lan network configuration problem
hi, it's me again :p
i'm trying to configure my lan connection. i have a static ip, mask and gateway that are succesfully working on my windows. now, the all story ( with codes this time) 1. i did netconfig. followed the steps. ok. i reboot, no ping to gateway Code:
Network unreachable Code:
Could not parse the XML output from the network configuration 3. found netconfig file in sbin, tried to rewrite the info for eth0 and eth1 (was not sure which exactly lan card i'm using), reboot, ping Code:
Network unreachable Code:
lo link encap local, looback 5. tried to reopen netconfig and comment all lines about loopback -- nothing Code:
root@martysha: netconfig 6. reboot, connect to your site, read the thread of Cuetzpallin and after that: succesfully detected that my lan card in use is eth1. Code:
ifconfig eth1 [my ip] netmask [my mask] 8. so, conclusion: a) i want to set up my gateway b) still "permission denied" for netconfig - maybe i did something very very wrong c) still "could not parse the XML output from the network configuration" when i try to open network settings in kde d) ifconfig - still loopback ! e) lan card connected and there is a traffic - at least that!!! please don't laugh so loudly ;) |
Open /etc/rc.d/rc.inet1.conf file as root and enter your configuration,save and reboot.
|
The local loopback device is is supposed to be there. Without it, X probably won't work (and a lot of services). `ifconfig -a` will show ALL available interfaces, and therefore should show eth1 (if that is the interface). You should NEVER edit netconfig -- that's really not what it's for. It's a script to setup your network, and nothing more. If you want to edit something, edit /etc/rc.d/rc.inet1.conf, as alan_ri said.
Post the output of `ifconfig -a` and `route -n`. If I were you I would download the network-scripts-12.1-noarch-1.tgz package from your favourite mirror (it's in the slackware/n/ directory), and do the following (OUTSIDE of X, still in the console) as root: Code:
# telinit 1 You should also post the output of `lspci -vv` and `lsmod` (use the code tags). |
report
like alan_ri said, i've opened rc.inet1.conf - and everything was already configured default gateway also :scratch: i will download and replace my netconfig file, as T3slider suggested. now, still the same. eth1 - my lan card in use, is connected, there is traffic used, but no gateway set up. how could i setup it ? tomorrow i will replace netconfig and try again. the codes: i have 2 lan cards: Code:
bash-3.1# ifconfig -a Code:
Destination Gateway Genmask Flags Metric Ref Use Iface |
Your `route -n` output shows that there is a gateway for eth0 but not eth1.If eth1 is the card you're trying to use (which based on your previous posts I suspect it is), then you'll have to add a gateway for eth1. Try the following command:
Code:
# route add default gw **.**.222.1 eth1 |
it's working! :cool:
so, first i tried to configure the gateway Code:
route add default gw **.**.222.1 eth1 Code:
Unknown host thank you a lot! |
no - it was just for a moment working and now it's not! grr
i rebooted for being sure that everything is ok. and - eth1 not connected :confused: Code:
bash-3.1# ifconfig -a Code:
bash-3.1# route -n i've written it in the file and made one more time netconfig - nothing what is going on with my lan card? :rolleyes: maybe i have problems because i have two lan cards ? any ideas? i'll go to reconfigure all-all-all files again... |
Hi,
Your output shows that 'eth0' is activated and has a IP with a kernel route table setup. Post your '/etc/rc.d/rc.inet1conf' file. |
Post your /etc/rc.d/rc.inet1.conf, as onebuck said. Since netconfig isn't doing the trick, it's probably because of the multiple interfaces. You should try editing /etc/rc.d/rc.inet1.conf directly (you can probably copy the settings for your eth0 into the eth1 section, since they should be valid). Then run `/etc/rc.d/rc.inet1 restart` and it should be up and running (hopefully). Alternatively, you could add a udev rule to rename the interfaces (change eth1 to eth0 and vice versa), but that's really not necessary.
|
ok, me again with last report:
first, the inet1config file (this is after i filled again all the details, they've been lost for eth1, and i have not idea why: Code:
# /etc/rc.d/rc.inet1.conf so, i've made 1. netconfig 2. inet1config 3. route - add gateway reboot the gateway is missing again, no connection again (i'm really stubborn) 1. netconfig 2. inet1config 3. route - add gateway reboot reboot now it's working...hopefully... i think now to reboot to check again... but i cannot do that changes all the time!! :( every time i restart i lose my gateway or something T3slider do you think that if i change eth0 and eth1 that will solve the problem? |
You should first try editing /etc/rc.d/rc.inet1.conf and ONLY putting the settings in eth1, leaving everything from eth0 blank. I would hope that would apply the gateway to eth1 and not eth0 -- but I'm definitely not an expert on the subject, so I may be wrong.
If you want to try switching eth0 and eth1, you should look in /etc/udev/rules.d/70-persistent-net.rules. It maps a network device to eth0 or eth1. You could switch the eth0 to eth1 and vice versa. It's probably better to create local rules instead of changing the default files, so you could create a copy of the 70-persistent-net.rules file and name it 10-local.rules, and change the eth0 and eth1 in there -- but I don't claim to know a lot about udev, so I don't know how well, if at all, this will work. |
yeah, obviously rebooting is not a good idea :D
1. i've lost my gateway AGAIN made #route add default gw no internet (but eth1 well connected) reboot 2. lost gateway again inet1conf - eth1 missing again added all no internet reboot 3. missing gateway and eth1 data. netconfig, inet1.conf, add AGAIN the f***** gateway no net connection reboot 4. of course, no surprises now - gateway address is lost (only that this time reenter all (netconfig, inet1.conf, gateway) all is entered but no connection to internet reboot 5. eth1 not connected :tisk: i see one easy solution - do that 10 times again until it decides to work.. and .. do not switch off my pc anymore!! |
T3slider, yeah, i'll try to fill only eth1 fields now. but i think that every time i run netconfig it makes configuration of eth0 only :rolleyes:
i'll try that and if it's not working, tomorrow i'll switch eth0 and eth1 like you suggested ;) thanks! |
You seem to be assigning the same IP address to both network cards. Some more information about your network topology would make for providing better advice.
|
T3Slider said :
Quote:
Quote:
I usually set up a udev rule so my internet i/f is eth0 then netconfig will work ok for this. The udev rule can be set up to allocate an interface by Mac address ensuring eh0/1 are consistent. At the moment I'm on a Slackware 12 box so I cannot comment on the correct udev rule setting as 12.1 has changed the rules file names but T3Slider has given instructions. |
All times are GMT -5. The time now is 06:46 AM. |