Red Hat Docs  >  Manuals  >  EDK Manuals  > 

Contents

Previous

Next


Determining the Network Configuration

The following discussion details how to determine your host's network configuration; the numbers as they appear are only for example purposes and not for actual use. Type route to display the Kernel IP routing table, like the following example shows.

Kernel IP routing table

Destination

Gateway Genmask Flags Metric Ref Use Iface

211.210.231.141

0.0.0.0 255.255.255.255 UH 0 0 0 eth0

211.210.231.0

0.0.0.0 255.255.255.0 U 0 0 0 eth0

127.0.0.0

0.0.0.0 255.0.0.0 U 0 0 0 lo

0.0.0.0

211.210.231.1 0.0.0.0 UG 0 0 0 eth0

For Kernel IP routing table, the first entry of the first line is 211.210.231.141 , the host's IP address (the host-IP-address value in Network information).

The second line is the listing for your subnet; the base subnet IP is 211.210.231.0 (the subnet  value in Network information), and the subnet mask is 255.255.255.0 (the netmask  value in Network information).

The third line is not relevant.

The last line is the entry for the gateway, or router; the router IP is 211.210.231.1 (the router-IP-address  value in Network information).

Typing cat /etc/resolv.conf would then output something like the following example.

search mycompany.com nameserver 211.210.231.2

This output tells you that you would use mycompany.com as the domain-name  value in Network information; 211.210.231.2 as the IP address of the primary Domain Name Server (the domain-name-servers  value in Network information).

Use the ifconfig command to determine the broadcast-address  value that you will add to Network information. In Broadcast address, the broadcast-address  is to the right of the Bcast: output.

Broadcast address
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:00:86:1B:AA:9E
inet addr:211.210.231.22 Bcast:211.210.231.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:323 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:3 Base address:0x300

Contents

Previous

Next