- 积分
- 177
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2017-9-11
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
3鸿鹄币
本帖最后由 mrbwai 于 2018-7-20 17:28 编辑
2012 server 配搭Cisco L3 Switch使用
DHCP能看到成功分配IP地址 和 Client的記錄
但Client方面並一直不能取得IP address
曾經嘗試直接在L3 switch設定dhcp pool能成功分配ip到Client
| TestCore#sh run
Building configuration...
Current configuration : 6654 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname TestCore
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$S/z5$/Mo58mtp2t4zjZ2zgUiYT/
enable password 701100
!
!
!
no aaa new-model
switch 1 provision ws-c3750x-24
system mtu routing 1500
ip routing
!
!
ip dhcp snooping vlan 10-20,30-40
ip dhcp snooping
no ip domain-lookup
ip domain-name test.com
!
!
crypto pki trustpoint TP-self-signed-4052303872
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-4052303872
revocation-check none
rsakeypair TP-self-signed-4052303872
!
!
crypto pki certificate chain TP-self-signed-4052303872
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 34303532 33303338 3732301E 170D3933 30333031 30303031
31355A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D34 30353233
30333837 3230819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100AABD DA02E234 FFA184A7 2B9F733A BE4D8441 C32CF169 932D73B5 F5317AE8
9C63E061 DEF7A73D 90596ADB A1894025 392CED34 41245B1F BF4A45F4 40D9C434
2C9BEFD4 27284E4E 4196CBCE 3DA3932B A649DE79 DE230B11 650B844E E496A30F
513F5B79 6ED14506 42744493 15C99C92 FCDDDED0 00DA4860 14939D60 BEF70FE7
1F490203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF 301C0603
551D1104 15301382 11546573 74436F72 652E7465 73742E63 6F6D301F 0603551D
23041830 16801465 D88C5854 42BC5DF3 E3397AFD 176C396B F29CE530 1D060355
1D0E0416 041465D8 8C585442 BC5DF3E3 397AFD17 6C396BF2 9CE5300D 06092A86
4886F70D 01010405 00038181 008288A8 E277CB47 5F7F4EC6 ADB6FF71 6160D79E
58120012 1BE8E1C7 8C73F14C FB4E6D67 134D0988 37A782B7 3AF5AF30 D3F437A0
3BA612C0 EA49005D C25A1AA3 12B37406 8FBFBF18 AB81DD16 795E5A4D 87BD8FCD
C04C7904 32650D5B F38EC9C5 45AB8404 29A0655A F9D3D1BC CFEAC78A 36E0D0AB
AB20CC8F 0EED7B71 8841445B FD
quit
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
interface GigabitEthernet1/0/6 <<<<< Serverport 192.168.1.4
switchport mode access
!
interface GigabitEthernet1/0/8
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,30,1002-1005
!
interface GigabitEthernet1/0/9<<<<<<<<<<< Client port
switchport access vlan 10
switchport mode access
spanning-tree portfast
interface Vlan1
ip address 192.168.1.2 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
ip helper-address 192.168.1.4
no ip redirects
!
interface Vlan20
ip address 192.168.20.254 255.255.255.0
ip helper-address 192.168.1.4
!
interface Vlan30
ip address 192.168.30.254 255.255.255.0
ip helper-address 192.168.1.4
!
interface Vlan40
ip address 192.168.40.254 255.255.255.0
ip helper-address 192.168.1.4
!
router ospf 100
router-id 10.10.10.10
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 0
!
ip classless
ip http server
ip http secure-server
!
ip sla enable reaction-alerts
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
password 28701100
login
line vty 5 15
password 28701100
login
!
end
Debug時發現no pool event
*Mar 2 05:20:45.547: DHCPD: Sending notification of DISCOVER:
*Mar 2 05:20:45.547: DHCPD: htype 1 chaddr 3c52.82ce.059b
*Mar 2 05:20:45.547: DHCPD: remote id 0006e4d3f1894000
*Mar 2 05:20:45.547: DHCPD: circuit id 0004000a0109
*Mar 2 05:20:45.547: DHCPD: interface = Vlan10
*Mar 2 05:20:45.547: DHCPD: class id 4d53465420352e30
*Mar 2 05:20:45.547: DHCPD: out_vlan_id 0
*Mar 2 05:20:45.555: DHCPD: DHCPOFFER notify setup address 192.168.10.2 mask 255.255.255.0
*Mar 2 05:20:45.555
TestCore#: DHCPD: Forwarding reply on numbered intf
*Mar 2 05:20:45.555: DHCPD: there is no pool for 192.168.10.254.
TestCore#
*Mar 2 05:20:49.473: DHCPD: there is no pool for 192.168.10.254.
TestCore#
*Mar 2 05:20:57.912: DHCPD: there is no pool for 192.168.10.254.
TestCore#
*Mar 2 05:21:07.877: DHCPD: checking for expired leases.
|
最佳答案
查看完整内容
手动设置10网段的IP,ping网关是不是通?分段TT问题的范围
|