Page 1 of 1

Network Configuration

Posted: 4. Jan 2016, 05:40
by littlemoule
Hi Guys,
I'm new to Salix and my goal is to set it up as a mini-server for software development and windows file sharing. I found that Git and SSH were already installed (perfect ! thank you =). I also got Samba working and now I need help tuning up my network.

I have 2 Network cards in this server: ifconfig outputs

Code: Select all

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.188  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::a00:27ff:fe34:47b8  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:34:47:b8  txqueuelen 1000  (Ethernet)
        RX packets 53  bytes 6657 (6.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 102  bytes 11049 (10.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a00:27ff:fe5c:c896  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:5c:c8:96  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 238 (238.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 110  bytes 8436 (8.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 110  bytes 8436 (8.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Now here is what I am trying to do: eth0 serves the Internet and I want eth1 to serve the Local Area Network (for fast file transfers between it and Windows Machines). I am unable to do so as I cannot find any options to setup multiple ethernet interface in wicd. Help =)

Re: Network Configuration

Posted: 6. Jan 2016, 14:45
by gapan
No, there is no way to do that from wicd. You can always remove wicd and setup your network connections manually with ifconfig. Running

Code: Select all

sudo netconfig
can probably help you set things up (I have not tried this myself).
You can find more information here: http://alien.slackbook.org/dokuwiki/dok ... re:network

Re: Network Configuration

Posted: 12. Jan 2016, 01:44
by littlemoule
Thank you very much for the reply, that link helped me setup my basic configuration however I wish the Slackware documentation was a bit more cleaner (for example, Fedora has upstream documentation which is very high quality). I am wondering is there any firewall in Salix? For example, Fedora has SELinux.

In addition, I have noticed that nfs file system performance is rather slow. Has anyone else experienced that as well? I should reformat to ext3. :D

Re: Network Configuration

Posted: 12. Jan 2016, 02:44
by ChuangTzu
Firewall and SELinux are two different things.

For firewall you can either create a script, save in rc.firewall:
http://www.slackware.com/~alien/efg/

or use ufw
after installing/compiling place this script into rc.local, to run at boot.
if [ -x /lib/ufw/ufw-init ]; then
/lib/ufw/ufw-init start
fi