tft每日頭條

 > 生活

 > 三層交換機與dhcp服務器對接

三層交換機與dhcp服務器對接

生活 更新时间:2024-08-16 11:12:28

三層交換機與dhcp服務器對接?一、實驗步驟:1、在模拟器上拉出一台三層換機和三台PC,分别用線纜連接好并啟動,接下來我們就來聊聊關于三層交換機與dhcp服務器對接?以下内容大家不妨參考一二希望能幫到您!

三層交換機與dhcp服務器對接(三層交換機上DHCP配置詳解)1

三層交換機與dhcp服務器對接

一、實驗步驟:

1、在模拟器上拉出一台三層換機和三台PC,分别用線纜連接好并啟動。

2、PC1連接三層交換機的vlanif地址為:192.168.1.1,PC2連接三層交換機vlanif地址為:

192.168.2.1,PC3連接三層交換機的vlanif地址為:192.168.3.1。各接口地址如圖所示。

3、VLAN10和VLAN20配置DHCP服務,讓PC1和PC2自動獲取IP地址,并在VLAN10上做地址排 除,将排除地址192.168.1.220到192.168.1.254用于服務器,VLAN30手工配置IP地址。

4、先在三層交換機上配置三個VLAN——》将各PC連接的端口配置為Access模式,并劃入相應V LAN——》給相應VLAN的三層接口配置網關——》在全局模式下建地址池——》将配置好的 地址池應用在三層接口上,讓PC自動獲取IP地址

二、配置命令:

SW1

[SW1]disp vlan

The total number of vlans is : 4

--------------------------------------------------------------------------------

U: Up; D: Down; TG: Tagged; UT: Untagged;

MP: Vlan-mapping; ST: Vlan-stacking;

#: ProtocolTransparent-vlan; *: Management-vlan;

--------------------------------------------------------------------------------

VID Type Ports

--------------------------------------------------------------------------------

1 common UT:GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D)

GE0/0/9(D) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D)

GE0/0/13(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D)

GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D)

GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) GE0/0/24(D)

10 common UT:GE0/0/1(U) GE0/0/4(U)

20 common UT:GE0/0/2(U)

30 common UT:GE0/0/3(U)

VID Status Property MAC-LRN Statistics Description

--------------------------------------------------------------------------------

1 enable default enable disable VLAN 0001

10 enable default enable disable VLAN 0010

20 enable default enable disable VLAN 0020

30 enable default enable disable VLAN 0030

[SW1]

[SW1]disp ip routing-table

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Tables: Public

Destinations : 8 Routes : 8

Destination/Mask Proto Pre Cost Flags NextHop Interface

127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0

127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

192.168.1.0/24 Direct 0 0 D 192.168.1.1 Vlanif10

192.168.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif10

192.168.2.0/24 Direct 0 0 D 192.168.2.1 Vlanif20

192.168.2.1/32 Direct 0 0 D 127.0.0.1 Vlanif20

192.168.3.0/24 Direct 0 0 D 192.168.3.1 Vlanif30

192.168.3.1/32 Direct 0 0 D 127.0.0.1 Vlanif30

[SW1]

[SW1-ip-pool-vl0]disp ip pool

-----------------------------------------------------------------------

Pool-name : v10

Pool-No : 0

Position : Local Status : Unlocked

Gateway-0 : 192.168.1.1

Mask : 255.255.255.0

VPN instance : --

-----------------------------------------------------------------------

Pool-name : v20

Pool-No : 1

Position : Local Status : Unlocked

Gateway-0 : 192.168.2.1

Mask : 255.255.255.0

VPN instance : --

-----------------------------------------------------------------------

Pool-name : vl0

Pool-No : 2

Position : Local Status : Unlocked

Gateway-0 : -

Mask : -

VPN instance : --

IP address Statistic

Total :506

Used :2 Idle :469

Expired :0 Conflict :0 Disable :35

[SW1-ip-pool-vl0]

[SW1-ip-pool-vl0]disp ip pool name v10

Pool-name : v10

Pool-No : 0

Lease : 0 Days 6 Hours 0 Minutes

Domain-name : -

DNS-server0 : 119.29.29.29

DNS-server1 : 8.8.8.8

NBNS-server0 : -

Netbios-type : -

Position : Local Status : Unlocked

Gateway-0 : 192.168.1.1

Mask : 255.255.255.0

VPN instance : --

-----------------------------------------------------------------------------

Start End Total Used Idle(Expired) Conflict Disable

-----------------------------------------------------------------------------

192.168.1.1 192.168.1.254 253 1 217(0) 0 35

-----------------------------------------------------------------------------

[SW1-ip-pool-vl0]

[SW1-ip-pool-vl0]disp ip pool name v20

Pool-name : v20

Pool-No : 1

Lease : 0 Days 2 Hours 0 Minutes

Domain-name : -

DNS-server0 : 223.5.5.5

NBNS-server0 : -

Netbios-type : -

Position : Local Status : Unlocked

Gateway-0 : 192.168.2.1

Mask : 255.255.255.0

VPN instance : --

-----------------------------------------------------------------------------

Start End Total Used Idle(Expired) Conflict Disable

-----------------------------------------------------------------------------

192.168.2.1 192.168.2.254 253 1 252(0) 0 0

-----------------------------------------------------------------------------

[SW1-ip-pool-vl0]

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关生活资讯推荐

热门生活资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved