Network configuration (Slovenský)

From ArchWiki
Revision as of 11:00, 18 October 2005 by Firefox (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end


A simple guide to get your network running. (tried and tested with prolink 9000/c adsl ethernet modem with a prolink PFE100TX ethernet card and a SingNet connection in Singapore)

Load the device module

Add your eth0 module to the modules array in /etc/rc.conf, eg. tg3, (8139too for prolink PFE100tx card which uses the realtek chipset)

MODULES=(!usbserial tg3 snd-cmipci)

Configure IP


Edit /etc/rc.conf like this:

  INTERFACES=(lo eth0)

For Static IP

If you share your internet connection from a Windows box without a router, be sure to use static IPs on both computers. Otherwise you will have LAN issues.

You need:

  • Your static IP address,
  • The netmask,
  • The broadcast address,
  • Your gateway,
  • Your nameservers' IP addresses,
  • Your domain name.

If you are running a private network, it is safe to use IP addresses in 192.168.*.'* for your IPs, with a netmask of and broadcast address of Unless your network has a router, the gateway address does not matter. Edit /etc/rc.conf like this, substituting your own values for the IP, netmask, broadcast, and gateway:

   eth0="eth0 netmask broadcast"
   INTERFACES=(lo eth0)
   gateway="default gw"

and your /etc/resolv.conf like this, substituting your nameservers' IPs and your domain name:

  nameserver 61.95.849.8

You may include as many nameserver lines as you wish.

If you use DHCP and you don't want your DNS servers to change every time you start your network, be sure to add the -R option to DHCPCD_ARGS in /etc/conf.d/dhcpcd (used by in /etc/rc.d/network). This prevents DHCP from rewritting your /etc/resolv.conf every time:


Set computer name

Edit /etc/rc.conf and set HOSTNAME to your desired computer name :


Set host name/ip

Edit /etc/hosts and add a similar line with the same HOSTNAME you entered at /etc/rc.conf :               banana.localdomain             banana