单臂路由,缺点1网络瓶颈2容易发生单点物理故障3vlan间通信的每个帧都进行单独路由
起名-->配vlan-->将端口加到vlan-->交换机连路由配tunk-->配三层路由子接口
起名:en,进入配置模式,conf t ,
配vlan: vlan10 exit --- vlan20 exit
将端口加到vlan: int 端口号
switchpotr access vlan 10 --------------exit
int 端口号
sw ac vlan 20
配tunk: int 端口 (让数据上去)
sw m t
---------三层接口
起名: ho r1
配子接口:int f0/0.1 (意味着成为VLAN10的网关)
encapsulation dot1Q 10
ip add 10.1.1.254 255.255.255.0
no shut
int f0/0.2 (意味着成为VLAN20的网关)
encapsulation dot1Q 20
ip add 20.1.1.254 255.255.255.0
no shut
exit
父接口开启: int f0/0
no shut
做完了,do sh ip int b (检查)
----------------------------------------------------------------------------------------

目标:路由DHCP实现ip
步骤:打通这三个路由 --> 配置VTP --> 给每个交换机配vlan --> 给三层设备配置子路由表
1 打通交换机 (write是保存)
int 端口号
sw m t
第二台
int rang f0/3 - 5
sw m t
2 VTP :vtp domain wencoll
2.1 交换机划分vlan
3 给每个交换机配vlan:
int 端口号
sw acc vlan 10
4 给三层设备配置子路由表:
int 10/0.1 (vlan10的路由子表)
encapsulantion dot1Q 10
ip add 10.1.1.254 255.255.255.0
no sh
exit do sh ip int (检查)
----------------------------------------------------------------------------------------
在三层路由器上部署DHCP服务器
创建地址池-->
conf t
ip dhcp excluded-address 10.1.1.1 10.1.1.99 (排除地址)
ip dhcp pool v10 (地址池名字:v10)
network 10.1.1.0 255.255.255.0 (提供10网段地址 , 子网)
default-router 10.1.1.254 (网关)
dns-server 40.1.1.1 (员工地址)
lease 2 2 2 (租约时间 天 小时 分钟 在测试时此命令不可用)
exit

浙公网安备 33010602011771号