- 论坛徽章:
- 0
|
DHCP好像论坛里讲得不多,现在想了解下这方面的知识,做了下面的尝试,大家给分析下:
1、将网口ce0配置成DHCP
# ifconfig ce0 dhcp
ifconfig: ce0: interface is not under DHCP control
# ifconfig ce0 dhcp
ifconfig: ce0: wait timed out, operation still pending...
2、查看
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1004842<BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask 0
ether 0:3:ba:2b:c1:1
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.200.134 netmask ffffff00 broadcast 192.168.200.255
ether 0:3:ba:2b:c1:0
3、连接上网线,再次查看
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 192.168.200.234 netmask ffffff00 broadcast 192.168.200.255
ether 0:3:ba:2b:c1:1
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.200.134 netmask ffffff00 broadcast 192.168.200.255
ether 0:3:ba:2b:c1:0
4、telnet 192.168.200.234 失败
操作上存在什么问题,失败的原因是什么? |
|