C.6. Record network configuration

If the machine does not use the Dynamic Host Configuration Protocol then record the current network configuration. This is used to complete the installer's Configure TCP/IP screen.

Example C-1. Displaying the Internet Protocol configuration

bash$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:10.1.2.3  Bcast:10.1.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:344233 errors:0 dropped:0 overruns:0 frame:0
          TX packets:285750 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0x9000
bash$ netstat -r -n                                                          (1)
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.1.2.0        0.0.0.0         255.255.255.0   U        40 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
0.0.0.0         10.1.2.254      0.0.0.0         UG       40 0          0 eth0
bash$ cat /etc/resolv.conf
domain example.edu.au
nameserver 10.255.1.1
nameserver 10.255.2.1
nameserver 172.16.1.1
(1)
The value of inet addr is the "IP address". Our example shows 10.1.2.3. The value of Mask is the "Netmask". Our example shows 255.255.255.0.
(2)
The value in the Gateway column for Destination 0.0.0.0 is the "Default gateway". Our example shows 10.1.2.254.
(3)
The value of the first listed nameserver is the "Primary nameserver". Our example shows 10.255.1.1.

mirror server hosted at Truenetwork, Russian Federation.