-n , IP :
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 217.75.146.1 0.0.0.0 UG 1 0 0 eth0
. :
#route del default
gateway- . , :
#route add default gw 192.168.7.1 #route add default gw gateway2.compsc.mgu.bg
, DNS , gateway2.compsc.mgu.bg IP 192.168.7.1.
gateway , . gateway, . DNS /etc/resolv.conf. , , :
search axelbg.com
nameserver 217.75.146.1
nameserver 217.75.128.9
DNS , DNS ( resolver) , , IP .
, , . , . , -.
Slackware , , . /etc/rc.d/ rc.inet1. rc.inet1.conf . :
# /etc/rc.d/rc.inet1.conf
# Config information for eth0:
IPADDR[0]="217.75.146.24"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
...
GATEWAY="217.75.146.1"
DEBUG_ETH_UP="no"