Network command manual

Support
  1. Configure network
  2. telnet - user interface to the TELNET protocol
  3. ftp - ARPANET file transfer program
  4. rdate - get the date and time via the network

ifconfig

Add a new ip address to existing interface

ifconfig eth0:0 202.144.157.211 \
broadcast 202.144.157.223 \
netmask 255.255.255.240
route add -host 202.144.157.211 dev eth0:0

Configure network

Sample Network
  IP Address    
1 192.168.1.0 Network Address  
2 192.168.1.2 Red Hat Linux Server DNS, E-Mail, etc
3 192.168.1.3 Windows Assign from DHCP
  ...........    

/etc/sysconfig/network

NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=ns
DOMAINNAME=rim
GATEWAY=
GATEWAYDEV=
NISDOMAIN=""

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes

/etc/hosts

127.0.0.1 localhost localhost.localdomain
192.168.1.2 ns ns. redhat.com

/etc/resolv.conf

search redhat.com

/etc/resolv.conf

search redhat.com
nameserver 192.168.1.2
nameserver 202.144.129.34
nameserver 202.144.128.200

Notice
  DNS Server's IP Address  
1 nameserver 192.168.1.2 DNS Server
2 nameserver 202.144.129.34 ISP DNS Server
3 nameserver 202.144.128.200 ISP DNS Server

telnet - user interface to the TELNET protocol

The telnet command is used for interactive communication with another host using the TELNET protocol.

 
telnet [host] [port]
host Specifies a host to contact over the network.
port Specifies a port number or service name to contact. If not specified, the telnet port (23) is used.

 

Back

Copyright © [- SroNey / JohN -]. All rights reserved

Hosted by www.Geocities.ws

1