Page 1 of 1

Network config

Posted: 27. Dec 2010, 07:01
by sabozzz
Hello,
I've used Salix OS which I installed on my professionnel computer for few weeks.
It works very good but the configuration of the network could be improved I think.
On login, I am connected to the entreprise netword and I can access to shared folders. But I can't go on the web, unless I do

Code: Select all

su; dhcpcd
to have an other ip. Afterwards, no problem to navigate.
:arrow: How could I config the network to have directly access?
I have so a few question about the netword in Salix OS.
:arrow: What is the file to configure the netword?
:arrow: Is there a default software to manage network (like wicd)?
:arrow: How can I know if one is already installed?
:arrow: And which of them fits the best with salix xfce?

There are so a lot of questions and I will be happy if someone have some of answers?

Thank you and thank linux, the best os.

Re: Network config

Posted: 27. Dec 2010, 08:29
by pwatk
Wicd should handle dhcpcd for you and you can use it from the shell.

The default Slackware networking script is can be configured via /etc/rc.d/rc.inet1.conf, you can also use the netconfig command for basic network configuration.

Re: Network config

Posted: 28. Dec 2010, 06:46
by sabozzz
Thank you for wicd. I used it before with good result. :)

However, I don't manage to configure the network to have all access I want.
I can go through the shared folders, but not on the web or get my mails with thunderbird.
This is my ifconfig after login :

Code: Select all

eth0      Link encap:Ethernet  HWaddr 00:0c:6e:46:cc:de  
          inet addr:192.0.1.202  Bcast:192.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fe46:ccde/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:110 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11285 (11.0 KiB)  TX bytes:4832 (4.7 KiB)
          Interrupt:22 Base address:0xa000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
And now, after dhcpcd, afterwards, all is ok.

Code: Select all

eth0      Link encap:Ethernet  HWaddr 00:0c:6e:46:cc:de  
          inet addr:192.0.1.202  Bcast:192.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fe46:ccde/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1101 errors:0 dropped:0 overruns:0 frame:0
          TX packets:946 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:621292 (606.7 KiB)  TX bytes:119143 (116.3 KiB)
          Interrupt:22 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:50:ba:e4:8b:78  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Is it possible to have immediatly after login this connection, without doing a dhcpdcd each time.

Thank you.

Re: Network config

Posted: 28. Dec 2010, 08:23
by EaglePrince
Well, I think you should be able to just clear the Use static IPs and Use static DNS boxes in the WICD properties page.

But if that does not work, and since you know that the problem is fixed by running dhcpcd, you can just add dhcpcd to rc.local:

Code: Select all

echo "dhcpcd eth0" >> /etc/rc.d/rc.local
I suspect you already know how to do this anyway, but I am curious about why this is happening in the first place.

From my rather basic understanding of networking - which I'm sure the experts here will correct if I'm wrong - it seems that it is a routing problem, since you can see the local network. When you use DHCP, the server provides this information, but you need to provide it in the static case. You may be be able to check this by inspecting the output of :

Code: Select all

/sbin/route
in both cases.

EP

Re: Network config

Posted: 28. Dec 2010, 12:19
by laprjns

Code: Select all

inet addr:192.0.1.202  Bcast:192.0.1.255  Mask:255.255.255.0
Not sure this is the problem but first I would fix your private network addressing, 192.0 .X.X is not a legal private address. Needs to be 192.168.x.x.

Re: Network config

Posted: 31. Dec 2010, 09:58
by sabozzz
Well, I think you should be able to just clear the Use static IPs and Use static DNS boxes in the WICD properties page.
I tried but no more result.

Here is the result of /sbin/route

Code: Select all

root[nico]# /sbin/route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     203    0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         bewan.bewan     0.0.0.0         UG    1      0        0 eth0
default         bewan.bewan     0.0.0.0         UG    203    0        0 eth0

Code: Select all

inet addr:192.0.1.202  Bcast:192.0.1.255  Mask:255.255.255.0
Not sure this is the problem but first I would fix your private network addressing, 192.0 .X.X is not a legal private address. Needs to be 192.168.x.x.
The beginning of the ip adress in the dhcp are defined to 192.0.1.51.

Re: Network config

Posted: 31. Dec 2010, 11:04
by sabozzz
I register my computer on dhcp server of the network with ip 192.0.1.202.
Do not work. I have to do dhcpcd to have this adress 192.0.1.65.

I changed in wicd config eth0 by eth1. But no more result. And besides, now, I see no interface in wicd.

Next step, I change the config in dhcp on 192.0.1.199.
I reboot on 202, and dhcpcd does not give me 192.0.1.199 but 202 :

Code: Select all

root[nico]# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:46:cc:de  
          inet addr:192.0.1.202  Bcast:192.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fe46:ccde/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:119019 (116.2 KiB)  TX bytes:34756 (33.9 KiB)
          Interrupt:22 Base address:0x6000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root[nico]# dhcpcd 
dhcpcd: version 5.2.2 starting
dhcpcd: eth0: rebinding lease of 192.0.1.202
dhcpcd: eth1: waiting for carrier
dhcpcd: eth0: NAK: address not available from 192.0.1.50
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: offered 192.0.1.199 from 192.0.1.50
dhcpcd: eth0: acknowledged 192.0.1.199 from 192.0.1.50
dhcpcd: eth0: checking for 192.0.1.199
dhcpcd: eth0: leased 192.0.1.199 for 86400 seconds
dhcpcd: forking to background
root[nico]# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:46:cc:de  
          inet addr:192.0.1.202  Bcast:192.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fe46:ccde/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:210 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:120112 (117.2 KiB)  TX bytes:36076 (35.2 KiB)
          Interrupt:22 Base address:0x6000 

eth1      Link encap:Ethernet  HWaddr 00:50:ba:e4:8b:78  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)