Network Setup Tips: Difference between revisions
Line 47: | Line 47: | ||
== Configuring a Probe Port == | == Configuring a Probe Port == | ||
In order to configure a probe port you should set the | In order to configure a probe port you should set the '''BOOTPROTO''' setting to: "'''none'''". To, for example, make eth1 a probe port, use: | ||
<pre class="programListing"> | <pre class="programListing"> | ||
Line 54: | Line 54: | ||
ONBOOT=yes | ONBOOT=yes | ||
</pre> | </pre> | ||
== Restarting the Network Service == | == Restarting the Network Service == |
Revision as of 07:31, 16 September 2010
Accessing Network Configuration Files
To easily access the network configuration files, simply use the cdnet command:
[root@probe network-scripts]#
How To Add A Host Name Identifier To A DHCP Server
Some times it is desirable to add a host name identifier at the DHCP Client to be recognized by the DHCP Server. This will allow for local host names to be resolved by their respective name on the local LAN. This works well with a DD-WRT enabled LinkSys router.
To do this, add the following line to your network configuration file (we will use file: "/etc/sysconfig/network-scripts/ifcfg-eth0" for this example): DHCP_HOSTNAME=<your desired host name for this NST DHCP client>
DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes DHCP_HOSTNAME=probe-biostar
Configuring A Static IP Address
If the network your interface is connected to does not have a DHCP server, you will need to configure your system to use a static IP address. The following shows the contents of: "/etc/sysconfig/network-scripts/ifcfg-eth0" which is used to assign a static IP address of 192.168.12.100 to eth0 (an Ethernet interface):
DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.12.100 NETMASK=255.255.255.0 NETWORK=192.168.12.0 BROADCAST=192.168.12.255 GATEWAY=192.168.12.1 ONBOOT=yes
NOTE: The above assumes that the gateway machine for the network has an IP address of: "192.168.12.1".
Configuring a Probe Port
In order to configure a probe port you should set the BOOTPROTO setting to: "none". To, for example, make eth1 a probe port, use:
DEVICE=eth1 BOOTPROTO=none ONBOOT=yes
Restarting the Network Service
After editing any network configuration file, you should restart the network service as shown below:
[root@tmobile network-scripts]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ]
Display Routing Table
The following command can be used to display your network routing table (the -n option was included to prevent the route command from trying to resolve names):
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0