If you used the default boot options, the Network Security Toolkit system will request a IP address from a DHCP server. The following demonstrates how one can use the ifconfig command to determine the IP address assigned:
[root@probe root]#
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:2C:01:33:04 inet addr:192.168.0.138 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:135 errors:0 dropped:0 overruns:0 frame:0 TX packets:73 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:23997 (23.4 Kb) TX bytes:11746 (11.4 Kb) Interrupt:11 Base address:0xe400[root@probe root]#
Looking at the above output, you can see that the Network Security Toolkit
system was assigned the IP address of
192.168.0.138
by the DHCP
server.
If your network does not have a DHCP server, a IP address won't be assigned automatically, and you'll need to do it manually.
If your network does not have a DHCP
server running, it is recommended that you boot the Network Security Toolkit by
specifying usb
at the initial boot
screen.
The following shows how one can use the
cdnet and
auto_config_net192 commands to simplify the
process of manually setting a IP address of
192.168.0.211
on a
192.168.0.0/24
network:
Figure 8.1. Setting A IP Address By Hand
[root@probe root]#
cdnet
[root@probe network-scripts]#
jed nst-eth0.192net
F10 key ==> File Edit Search Buffers Windows System Help DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.0.211
NETMASK=255.255.255.0 NETWORK=192.168.0.0
BROADCAST=192.168.0
.255 GATEWAY=192.168.0
.1 ONBOOT=yes -------+(Jed 0.99.15) Emacs: nst-eth0.192net (Text) 4/9 3:47pm------------ Wrote 8 lines to /etc/sysconfig/network-scripts/nst-eth0.192net[root@probe network-scripts]#
auto_config_net192
*********************************************************************** *** Net driver detect/module install (phase:2 auto_modprobe_net)... *** *********************************************************************** *** Installing driver module: "via-rhine" for network device: "VIA Technologies|VT6102 [Rhine-II]" ************************************************************************** *** Configure a 192.168.1.x net on int: eth0 (phase:3 setup_net192)... *** ************************************************************************** Configured devices: lo eth0 Currently active devices: Shutting down loopback interface: [ OK ] *** Starting network with eth0 as 192.168.0.211 on network: 192.168.0.0 Setting network parameters: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ][root@probe network-scripts]#
If you find this process to be tedious, you should invest in a thumb drive and read the Automating Your Setup with lnstcustom section.