Site icon Ananova Business Web Hosting

Network Interfaces and Routes

<< Prev. Page: Linux Network Administration Commands

A connection to a network made through a hardware interface Ethernet card or a modem and data passes through it. /etc/rc.d/init.d/network initialization file executes when the system starts.

ifconfig

The command configures the network interface, and it automatically generates a standard broadcast address and netmask.

It assigns the IP address to the interface. The commands argument includes the name of an interface and an IP address, as well as options. The domain used for the IP address provided it is listed along with IP address in the /etc/hosts file.

IP Address: host address or network address

# ipconfig interface -host_net_flag address options

-host_net_flag: -host or -net to indicate host or network IP address. The -host is default.

Options

# ifconfig eth0 192.168.0.1

route

Setup network connections accordingly

Static route: On small networks, one system knows how to reach another by moving through fixed paths. It keeps track of all the network connections.

Dynamic route: On large networks like Internet packets transmitted from one computer to another takes a specific route to reach its destination. The route determines where the process starts and what is needed to send the packet to reach its destination.

The routes listed in /proc/net/route file. To display the routing table enter the command route with no arguments or netstat -r

Argument

Parameters:

IP Aliasing

It assigns a single Ethernet card to listen for added IP addresses. It is used to set up multiple IP-based virtual hosts for Internet servers. It enables the user to run several web servers on the same machine using a single interface. Thus can run different websites accessed with separate IP addresses on the same system.


Exit mobile version