2008-05-28 10:26:14
這是我大學裏老師上課的實驗
1、 ifconfig
可以使用ifconfig命令來配置並查看網絡接口的配置情況。
例如:
(1) 配置eth0的IP地址, 同時激活該設備。
#ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
(2) 配置eth0別名設備eth0:1的IP地址,並添加路由。
#i
1、 ifconfig
可以使用ifconfig命令來配置並查看網絡接口的配置情況。
例如:
(1) 配置eth0的IP地址, 同時激活該設備。
#ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
(2) 配置eth0別名設備eth0:1的IP地址,並添加路由。
#i
2008-05-28 10:26:14
這是我大學裏老師上課的實驗
1、 ifconfig
可以使用ifconfig命令來配置並查看網絡接口的配置情況。
例如:
(1) 配置eth0的IP地址, 同時激活該設備。
#ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
(2) 配置eth0別名設備eth0:1的IP地址,並添加路由。
#ifconfig eth0 192.168.1.3
#route add –host 192.168.1.3 dev eth0:1
(3) 激活設備。
#ifconfig eth0 up
(4) 禁用設備。
#ifconfig eth0 down
(5) 查看指定的網絡接口fconfig eth0 192.168.1.3
#route add –host 192.168.1.3 dev eth0:1
(3) 激活設備。
#ifconfig eth0 up
(4) 禁用設備。
#ifconfig eth0 down
(5) 查看指定的網絡接口
1、 ifconfig
可以使用ifconfig命令來配置並查看網絡接口的配置情況。
例如:
(1) 配置eth0的IP地址, 同時激活該設備。
#ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
(2) 配置eth0別名設備eth0:1的IP地址,並添加路由。
#ifconfig eth0 192.168.1.3
#route add –host 192.168.1.3 dev eth0:1
(3) 激活設備。
#ifconfig eth0 up
(4) 禁用設備。
#ifconfig eth0 down
(5) 查看指定的網絡接口fconfig eth0 192.168.1.3
#route add –host 192.168.1.3 dev eth0:1
(3) 激活設備。
#ifconfig eth0 up
(4) 禁用設備。
#ifconfig eth0 down
(5) 查看指定的網絡接口