Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - COMMAND-LINE Instrukcja Użytkownika Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 60
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 15
16
IP Configuration
ipconfig ifconfig
IP configuration utilities
ifconfig
netconfig (preferred)
linuxconf (catch all)
netconf (not preferred, use CTRL+X for pulldowns)
route print route –n (the –n is no resolution and is faster)
route add
route add –net network netmask subnet_mask gw gateway_address
route add –p (permanent)
(option 1)
Add the following information to the /etc/sysconfig/static-files file (simply
make the file if it does not already exist):
- vi /etc/sysconfig/static-files
- i (for insert)
- any net x.x.x.x netmask y.y.y.y gw z.z.z.z
- :wq
Now reboot to see if the route stuck
route add –p (permanent)
(option 2)
You could also simply add a line to the rc.local (e.g. autoexec.bat) file that
runs at startup:
- vi /etc/rc.d/rc.local
- i (for insert)
- route add –net network netmask subnet_mask gw
gateway_address
- :wq
route delete
route del –net network netmask subnet_mask
route add default gateway
route add default gw gateway_address
route add default gateway
(permanent)
If you need the default route to survive a reboot (non-DHCP for instance),
do it in the /etc/sysconfig/network file by adding the following line:
GATEWAY=x.x.x.x
DNS servers
/etc/resolv.conf
Hosts file
/etc/hosts
- IP address, at least one space, then hostname
- You can have more than one hostname on a line for a single IP
address, just separate the hostnames by at least one space
hostname
/etc/sysconfig/network
Change hostname - Change name in /etc/hosts
- Change name in /etc/sysconfig/network
HOSTNAME=”xxxxx”
- For Mandrake, also add the following line to the network file
DOMAINNAME=”xxxxx.xxx”
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 59 60

Komentarze do niniejszej Instrukcji

Brak uwag