[Home] [Linguistics:] [Fielework:] [Databases:] [Linux:] [Debian:] [Windows:] [Miscellaneous]

Network Howtos

Howto ifconfig

Links:
Network howtos
Network howtos -2
Network configuration, wi-fi, ethernet with linux debian HOWTO by Remy Malgouyres

The followings are procedures to change settings for internet connection, using ifconfig. I use several different TCIP/IP envirnments for my work and at home.

add name server addr, ie, DNS server value and DNS domain to the file as shown below.

$ emacs /etc/resolv.conf

domain xxx.co.jp
search xxx.co.jp
search debian.xxx.co.jp
nameserver xxx.xxx.xxx.x
nameserver xxx.xxx.xxx.x

In order to use a laptop at home and in the office. I use the following settings.

$ emacs /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopbac
iface home inet static
address www.zzz.xxx.qqq
netmask 255.sss.ttt.q
gateway www.zzz.xxx.q
dns-search *.zzz.co.jp
dns-nameservers www.zzz.xxx.qq

iface work inet static
address www.zzz.xxx.uuu
netmask 255.sss.ttt.q
gateway www.zzz.xxx.y
dns-search zzz.co.jp
dns-nameservers www.zzz.xxx.qq www.xxx.xxx.q


When I use the laptop at home, I do the following command.

# ifup eth0=home

When I use the laptop in the office, I do the following commmand.

# ifup eth0=work

Basic usages

The following is how to use ifconfig for static TCP/IP settings:

# ifcofig eth0 www.xxx.yyy.zz netmask 255.aaa.aaa.x up [www.xxx.yyy.zzz is value for IP address.255.aaa.aaa.x is for vaule for subnet mask.]

# route add -net www.xxx.yyy.z netmask 255.aaa.aaa.x eth0 [www.xxx.yyy.z is value for gateway 255.aaa.xxx.x is value for Subnet mask.]

# route add default gw www.xxx.yyy.q eth0 [www.xxx.yyy.1 is value for default gateway.]

HOWTO wireless network

See Wireless netowork.


TOP