查看: 299|回复: 0

局域网基础配置实践课(3)DHCP(接口模式、全局模式)

[复制链接]

16

主题

19

帖子

90

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
90
发表于 2024-9-20 21:18:48 | 显示全部楼层 |阅读模式
局域网基础配置实践课(3)(学习ETH-TRUNK,DHCP(接口模式、全局模式)
由于会议中忘记录视频了,所以大家就对着拓扑,敲一敲命令吧

==============DHCP接口模式(左边拓扑)=====================
<lsw5>dis cur
#
sysname lsw5
#
undo info-center enable
#
dns server 114.114.114.114
#
vlan batch 11
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif11
ip address 192.168.1.1 255.255.255.0
dhcp select interface
dhcp server static-bind ip-address 192.168.1.250 mac-address 5489-98e3-2873
dhcp server lease day 7 hour 0 minute 0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 11
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 11
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return


================DHCP 全局模式(右边拓扑)===============

<core>
<core>dis cur
#
sysname core
#
undo info-center enable
#
vlan batch 2 to 3
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
ip pool v2
gateway-list 192.168.2.1
network 192.168.2.0 mask 255.255.255.0
dns-list 202.103.44.150
#
ip pool v3
gateway-list 192.168.3.1
network 192.168.3.0 mask 255.255.255.0
lease day 3 hour 0 minute 0
dns-list 114.114.114.114
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif2
ip address 192.168.2.1 255.255.255.0
dhcp select global
#
interface Vlanif3
ip address 192.168.3.1 255.255.255.0
dhcp select global
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface Giga
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表