Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax for route command

Status
Not open for further replies.

rs2920

IS-IT--Management
Feb 25, 2004
1
US
I need syntax for the route and ifconfig commands...

route add -net DEST GATEWAY 1 ?
ifconfig e3H0 192.168.0.XXX mask 255.255.255.0 ?


Am I close?
 
1) Say your subnet is 192.168.0.0, a router at 192.168.0.254 is configured to reach the 192.168.1.0 subnet, then to define the route on your subnet:
route add -net 192.168.1 192.168.0.254
2)To assign a IP address to a NIC, do netconfig.
The ifconfig can then be used to assign alias address.
Anyway, first do the following:
ifconfig -a; netstat -rn
this will give you an overview of your current configuration.
I strongly suggest this:
man netconfig
man ifconfig
man route
man netstat

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top