DHCP端口设置命令剖析(1)(3)
- Current configuration : 1864 bytes
- !
- version 12.2
- no service pad
- service timestamps debug uptime
- service timestamps log uptime
- no service password-encryption
- !
- hostname Switch
- !
- !
- no aaa new-model
- system mtu routing 1500
- ip subnet-zero
- no ip domain-lookup
- ip dhcp excluded-address 10.0.0.1
- ip dhcp excluded-address 10.0.0.254
- ip dhcp excluded-address 10.0.1.254
- ip dhcp excluded-address 10.0.1.1
- !
- ip dhcp pool ccna
- network 10.0.0.0 255.255.255.0
- default-router 10.0.0.254
- dns-server 202.103.24.68
- lease 365
- !
- ip dhcp pool ccnp
- network 10.0.1.0 255.255.255.0
- default-router 10.0.1.254
- dns-server 202.103.24.68
- lease 365
- !
- !
- !
- !
- !
- !
- !
- !
- !
- spanning-tree mode pvst
- spanning-tree extend system-id
- !
- vlan internal allocation policy ascending
- !
- !
- !
- !
- interface FastEthernet0/1
- no switchport
- ip address 10.0.0.1 255.255.255.0
- ip helper-address 10.0.0.1
- !
- interface FastEthernet0/2
- no switchport
- ip address 10.0.1.1 255.255.255.0
- ip helper-address 10.0.1.1
- !
- interface FastEthernet0/3
- !
- interface FastEthernet0/4
- !
- interface FastEthernet0/5
- !
- interface FastEthernet0/6
- !
- interface FastEthernet0/7
- !
- interface FastEthernet0/8
- !
- interface FastEthernet0/9
- !
- interface FastEthernet0/10
- !
- interface FastEthernet0/11
- !
- interface FastEthernet0/12
- !
- interface FastEthernet0/13
- !
- interface FastEthernet0/14
- !
- interface FastEthernet0/15
- !
- interface FastEthernet0/16
- !
- interface FastEthernet0/17
- !
- interface FastEthernet0/18
- !
- interface FastEthernet0/19
- !
- interface FastEthernet0/20
- !
- interface FastEthernet0/21
- !
- interface FastEthernet0/22
- !
- interface FastEthernet0/23
- no switchport
- ip address 192.168.100.1 255.255.255.0
- !
- interface FastEthernet0/24
- !
- Switch#sh arp
- Protocol Address Age (min) Hardware Addr Type Interface
- Internet 10.0.0.2 0 001a.4b58.42a9 ARPA FastEthernet0/1
- Internet 10.0.1.1 - 001e.4a0a.2042 ARPA FastEthernet0/2
- Internet 10.0.0.1 - 001e.4a0a.2041 ARPA FastEthernet0/1
- Internet 192.168.100.1 - 001e.4a0a.2043 ARPA FastEthernet0/23
根据上面的配置,现在我们只要连接到f0/1口上,那么客户端分配到的地址将是0网段的地址 ,如果连接到f 0/2口上,那么客户端将分配到1网段的地址。
help-address的说明:
help-address 缺省转发的8个udp服务:time37 , tacacs49 , dns53 , boot/dhcp服务器67 , boot/dhcp客户端68 , tftp69 , netbios名字服务137, netbios数据报服务138
评论暂时关闭