Page 236 / 268 Scroll up to view Page 231 - 235
P-660R-F1 Series User’s Guide
236
2
Double-click on the profile of the network card you wish to configure. The
Ethernet Device
General
screen displays as shown.
Figure 153
Red Hat 9.0: KDE: Ethernet Device: General
If you have a dynamic IP address click
Automatically obtain IP address settings with
and select
dhcp
from the drop down list.
If you have a static IP address click
Statically set IP Addresses
and fill in the
Address
,
Subnet mask
,
and
Default Gateway Address
fields.
3
Click
OK
to save the changes and close the
Ethernet Device General
screen.
4
If you know your DNS server IP address(es), click the
DNS
tab in the
Network Configuration
screen. Enter the DNS server information in the fields provided.
Figure 154
Red Hat 9.0: KDE: Network Configuration: DNS
5
Click the
Devices
tab.
Page 237 / 268
P-660R-F1 Series User’s Guide
237
6
Click the
Activate
button to apply the changes. The following screen displays. Click
Yes to save
the changes in all screens.
Figure 155
Red Hat 9.0: KDE: Network Configuration: Activate
7
After the network card restart process is complete, make sure the
Status
is
Active
in the
Network
Configuration
screen.
Using Configuration Files
Follow the steps below to edit the network configuration files and set your computer IP address.
1
Assuming that you have only one network card on the computer, locate the
ifconfig-eth0
configuration file (where
eth0
is the name of the Ethernet card). Open the configuration file with
any plain text editor.
If you have a dynamic IP address, enter
dhcp
in the
BOOTPROTO=
field. The following figure shows an
example.
Figure 156
Red Hat 9.0: Dynamic IP Address Setting in ifconfig-eth0
If you have a static IP address, enter
static
in the
BOOTPROTO=
field. Type
IPADDR
= followed by the IP
address (in dotted decimal notation) and type
NETMASK
= followed by the subnet mask. The following
example shows an example where the static IP address is 192.168.1.10 and the subnet mask is
255.255.255.0.
Figure 157
Red Hat 9.0: Static IP Address Setting in ifconfig-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=
192.168.1.10
NETMASK=
255.255.255.0
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
Page 238 / 268
P-660R-F1 Series User’s Guide
238
2
If you know your DNS server IP address(es), enter the DNS server information in the
resolv.conf
file in the
/etc
directory. The following figure shows an example where two DNS
server IP addresses are specified.
Figure 158
Red Hat 9.0: DNS Settings in resolv.conf
3
After you edit and save the configuration files, you must restart the network card. Enter
./
network restart
in the
/etc/rc.d/init.d
directory. The following figure shows an example.
Figure 159
Red Hat 9.0: Restart Ethernet Card
Verifying Settings
Enter
ifconfig
in a terminal screen to check your TCP/IP properties.
Figure 160
Red Hat 9.0: Checking TCP/IP Properties
nameserver 172.23.5.1
nameserver 172.23.5.2
[root@localhost init.d]# network restart
Shutting down interface eth0:
[OK]
Shutting down loopback interface:
[OK]
Setting network parameters:
[OK]
Bringing up loopback interface:
[OK]
Bringing up interface eth0:
[OK]
[root@localhost]# ifconfig
eth0
Link encap:Ethernet
HWaddr 00:50:BA:72:5B:44
inet addr:172.23.19.129
Bcast:172.23.19.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST
MTU:1500
Metric:1
RX packets:717 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:730412 (713.2 Kb)
TX bytes:1570 (1.5 Kb)
Interrupt:10 Base address:0x1000
[root@localhost]#
Page 239 / 268
P-660R-F1 Series User’s Guide
239
A
PPENDIX
D
IP Addresses and Subnetting
This appendix introduces IP addresses, IP address classes and subnet masks. You use subnet masks to
subdivide a network into smaller logical networks.
Introduction to IP Addresses
An IP address has two parts: the network number and the host ID. Routers use the network number to send
packets to the correct network, while the host ID identifies a single device on the network.
An IP address is made up of four octets, written in dotted decimal notation, for example, 192.168.1.1. (An octet
is an 8-digit binary number. Therefore, each octet has a possible range of 00000000 to 11111111 in binary, or
0 to 255 in decimal.)
There are several classes of IP addresses. The first network number (192 in the above example) defines the
class of IP address. These are defined as follows:
Class A: 0 to 127
Class B: 128 to 191
Class C: 192 to 223
Class D: 224 to 239
Class E:
240 to 255
IP Address Classes and Hosts
The class of an IP address determines the number of hosts you can have on your network.
In a class A address the first octet is the network number, and the remaining three octets are the host ID.
In a class B address the first two octets make up the network number, and the two remaining octets make up
the host ID.
In a class C address the first three octets make up the network number, and the last octet is the host ID.
The following table shows the network number and host ID arrangement for classes A, B and C.
Table 100
Classes of IP Addresses
IP ADDRESS
OCTET 1
OCTET 2
OCTET 3
OCTET 4
Class A
Network
number
Host ID
Host ID
Host ID
Class B
Network
number
Network
number
Host ID
Host ID
Class C
Network
number
Network
number
Network number
Host ID
Page 240 / 268
P-660R-F1 Series User’s Guide
240
An IP address with host IDs of all zeros is the IP address of the network (192.168.1.0 for example). An IP
address with host IDs of all ones is the broadcast address for that network
(192.168.1.255 for example).
Therefore, to determine the total number of hosts allowed in a network, deduct two as shown next:
A class C address (1 host octet: 8 host bits) can have 2
8
– 2, or 254 hosts.
A class B address (2 host octets: 16 host bits) can have 2
16
– 2, or 65534 hosts.
A class A address (3 host octets: 24 host bits) can have 2
24
– 2 hosts, or approximately 16 million hosts.
IP Address Classes and Network ID
The value of the first octet of an IP address determines the class of an address.
Class A addresses have a
0
in the leftmost bit.
Class B addresses have a
1
in the leftmost bit and a
0
in the next leftmost bit.
Class C addresses start with
1 1 0
in the first three leftmost bits.
Class D addresses begin with
1 1 1 0
. Class D addresses are used for multicasting, which is used to send
information to groups of computers.
There is also a class E. It is reserved for future use.
The following table shows the allowed ranges for the first octet of each class. This range determines the number
of subnets you can have in a network.
Subnet Masks
A subnet mask is used to determine which bits are part of the network number, and which bits are part of the
host ID (using a logical AND operation).
A subnet mask has 32 bits. If a bit in the subnet mask is a “1” then the corresponding bit in the IP address is
part of the network number. If a bit in the subnet mask is “0” then the corresponding bit in the IP address is
part of the host ID.
Table 101
Allowed IP Address Range By Class
CLASS
ALLOWED RANGE OF FIRST OCTET (BINARY)
ALLOWED RANGE OF FIRST
OCTET (DECIMAL)
Class A
0
0000000 to
0
1111111
0 to 127
Class B
10
000000 to
10
111111
128 to 191
Class C
110
00000 to
110
11111
192 to 223
Class D
1110
0000 to
1110
1111
224 to 239
Class E
(reserved)
1111
0000 to
1111
1111
240 to 255

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top