For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Scripted Interface Configuration

Scripted Interface Configuration

Created by dave. Last edited by dave, 13 years and 307 days ago. Viewed 2,049 times. #1
[edit] [rdf]
labels
attachments

Configuring Network Interfaces From A Script

Check out netconfig:

[root@localhost ~]# netconfig --help
Usage: netconfig [OPTION...]
  --bootproto=(dhcp|bootp|none)     Boot protocol to use
  --gateway=STRING                  Network gateway
  --ip=STRING                       IP address
  --nameserver=STRING               Nameserver
  --netmask=STRING                  Netmask
  --hostname=STRING                 Hostname
  --domain=STRING                   Domain name
  -d, --device=STRING               Network device
  --nodns                           No DNS lookups
  --hwaddr=STRING                   Ethernet hardware address
  --description=STRING              Description of the device

Help options: -?, --help Show this help message --usage Display brief usage message

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt