ۼ : 05-12-07 10:14
۾ :
ȸ : 6,400
|
1. NIC duplex Ȯ
#ethtool eth0 : duplex ӵ Ȯ
#ethtool -s eth0 duplex full : duplex full
#ethtool -s eth0 speed 100 : speed 100
/etc/modules.conf : ý ϱ ؼ ϴ file
alias eth0 e100
alias eth1 e100
options e100 e100_speed_duplex=4,4 // 1=10half;2=10full;3=100half;4=100full
* modules.conf option duplex ϴ NIC ٸǷ Ȯ Ͽ .
intel NIC ϴ° ΰ.
2. NIC ø
-⺻ UP / DOWN
#ifconfig eth0 plumb ()
#ifconfig eth0 up
#ifconfig eth0 down
#ifconfig eth0 unplumb()
- Ͽ ø
#ifconfig eth0 211.41.84.222 netmask 255.255.255.0 broadcast 211.41.84.255 up
-̽ /̻
#ifconfig eth0 plumb ()
#ifconfig eth0 unplumb (̻)
3. routing
routing table
----------------------------------------------------
NIC ip networkּҿ routing table
localּҿ routing table
default gateway
static routing table
----------------------------------------------------
#route add -net 211.41.84.0 netmask 255.255.255.0 dev eth0 : networkּҿ routing table
#route add -net 172.24.9.0 netmask 255.255.255.0 gw 172.24.64.1 dev eth1 : static route
#route add default gw 211.41.84.234 dev eth0 : default gateway. /etc/sysconfig/networkȮ
#route add -host 211.41.84.111 gw xxx.xxx.xxx.xxx dev eth0 : Ư ȣƮ routing table.
* netmask
/etc/sysconfig/static-routes : static Ͽ (paran.com)
any net 172.24.9.0 netmask 255.255.255.0 gw 172.24.64.1 metric 1
any net 172.16.0.0 netmask 255.240.0.0 gw 172.24.64.1 metric 1
any net 10.0.0.0 netmask 255.0.0.0 gw 172.24.64.1 metric 1
any net 192.168.0.0 netmask 255.255.0.0 gw 172.24.64.1 metric 1
- -
IP Ȯ
1. IP ּ
2. ݸũ
3. G/W ּ
4. DNS ּ
5. Ʈ ּ
Ʈ
1. /etc/hosts
2. /etc/resolv.conf
3. ȣƮ ̸, Ʈ, Ʈ̷ ġ
/etc/sysconfig/network
ex) 1 NETWORKING=yes
2 HOSTNAME=kwsweb04
3 GATEWAY=211.41.73.129
4 GATEWAYDEV=eth0
4. ̽
/etc/sysconfig/network-scripts/ifcfg-eth0
ex) 1 DEVICE=eth0
2 BOOTPROTO=static
3 BROADCAST=211.41.73.191
4 IPADDR=211.41.73.144
5 NETMASK=255.255.255.192
6 NETWORK=211.41.73.128
7 ONBOOT=yes
̽ Ѵ.
5. /etc/rc.d/init.d/network restart
Ǵ service network restart
Ʈ Ȯ
# ping www.paran.com
# ifconfg -a | more
# mii-tool
ftp sftp ӵ Ʈ
|
|