在Cisco路由器中配置DHCP伺服器

2021-09-03 05:41:10 字數 772 閱讀 1818

inte***ce ethernet 0 \\

進入乙太網口配置模式

no shut \\

啟動乙太網口

ip address 192.168.2.1 255.255.255.0 \\

設定ip

位址與子網掩碼

ip address 192.168.1.1 255.255.255.0 secondary \\

設定第二位址與子網掩碼

ip nat outside \\

設定該埠為出口

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

ip dhcp pool  vfast1 \\

定義dhcp

並命名為

vfast1

network 192.168.2.0 255.255.255.0

\\發布位址池的網段

default-router 192.168.2.1

\\設定閘道器位址

dns-server 202.106.196.115 202.106.196.152

\\設定dns位址

lease 2

\\設定位址訂製天數

ip dhcp excluded-address 192.168.2.1 192.168.2.40

ip dhcp excluded-address 192.168.2.100 192.168.2.160 \\

設定預留位址

在CISCO路由器上配置DHCP與DHCP中繼

企業dhcp需求描述 在大型企業中,一般都有很多個部門,各部門之間有時要求不能互通,這可以通過使用vlan來解決,但是上千個人ip配置也是一件極大耗費人力的事。所以我們迫切需求一種全自動的,高效的配置方法,通過dhcp配置ip位址的方法很好地為我們解決了這個問題。網路拓撲如下 650 this.wi...

cisco路由器配置

cisco路由器配置的幾個常用命令 router enable 進入特權模式 router conf t 進入配置模式 router config int fa0 0 進入fa0 0介面 router config if ip add 192.168.1.1 255.255.255.0 給fa0 0...

CISCO路由器DHCP 配置

實驗拓撲 基本配置 r5充當dhcp 伺服器 ip dhcp pool vlan146 network 155.1.146.0 24 default router 155.1.146.4 dns 202.106.46.151 exit ip dhcp excluded address 155.1.1...