Page 266 / 324
Scroll up to view Page 261 - 265
Appendix A Setting up Your Computer’s IP Address
P-660HN-TxA User’s Guide
266
2
Double-click on the profile of the network card you wish to configure. The
Ethernet Device General
screen displays as shown.
Figure 139
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 140
Red Hat 9.0: KDE: Network Configuration: DNS
5
Click the
Devices
tab.
Page 267 / 324
Appendix A Setting up Your Computer’s IP Address
P-660HN-TxA User’s Guide
267
6
Click the
Activate
button to apply the changes. The following screen displays.
Click
Yes to save the changes in all screens.
Figure 141
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 142
Red Hat 9.0: Dynamic IP Address Setting in ifconfig-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
Page 268 / 324
Appendix A Setting up Your Computer’s IP Address
P-660HN-TxA User’s Guide
268
• 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 143
Red Hat 9.0: Static IP Address Setting in ifconfig-eth0
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 144
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 145
Red Hat 9.0: Restart Ethernet Card
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=
192.168.1.10
NETMASK=
255.255.255.0
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
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]
Page 269 / 324
Appendix A Setting up Your Computer’s IP Address
P-660HN-TxA User’s Guide
269
Verifying Settings
Enter
ifconfig
in a terminal screen to check your TCP/IP properties.
Figure 146
Red Hat 9.0: Checking TCP/IP Properties
[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 270 / 324
Appendix A Setting up Your Computer’s IP Address
P-660HN-TxA User’s Guide
270