banner motd # AUTHORIZED ACCESS ONLY# hostname S1 enable secret class line console 0 password cisco login exit line vty 0 4 password cisco login end S2配置命令 configure terminal banner motd # AUTHORIZED ACCESS ONLY# hostname S2 enable secret class line console 0 password cisco login exit line vty 0 4 password cisco
6
login end S3配置命令 configure terminal banner motd # AUTHORIZED ACCESS ONLY# hostname S3 enable secret class line console 0 password cisco login exit ling vty 0 4 password cisco login end 步骤 2. 在 BRANCH 上配置快速以太网子接口。
不要忘记为每个子接口配置 802.1q 封装和 VLAN 设置。每个子接口地址的第三组二进制八位数与 VLAN 编号对应。例如,子接口 Fa0/0.30 应使用 IP 地址 172.17.30.1,属于 VLAN 30。 VLAN 99 为本征 VLAN。 BRANCH配置命令 configure terminal interface f0/0 no shutdown end
7
configure terminal interface f0/0.1 encapsulation dot1q 1 ip address 172.17.1.1 255.255.255.0 no shutdown exit interface f0/0.10 encapsulation dot1q 10 ip address 172.17.10.1 255.255.255.0 no shutdown exit interface f0/0.20 encapsulation dot1q 20 ip address 172.17.20.1 255.255.255.0 no shutdown exit interface f0/0.30 encapsulation dot1q 30 ip address 172.17.30.1 255.255.255.0 no shutdown exit interface f0/0.99 encapsulation dot1q 99 native ip address 172.17.99.1 255.255.255.0
8
no shutdown end 步骤 3. 配置交换机。
? 配置 VLAN 99 接口。 ?
配置默认网关。
S1配置命令 configure terminal interface vlan 99 ip add 172.17.99.11 255.255.255.0 no shutdown exit ip default-gateway 172.17.99.1 end S2配置命令 configure terminal interface vlan 99 ip add 172.17.99.12 255.255.255.0 no shutdown exit ip default-gateway 172.17.99.1 end S3配置命令 configure terminal interface vlan 99
9
ip add 172.17.99.13 255.255.255.0 no shutdown exit ip default-gateway 172.17.99.1 end 步骤 4. 检查结果。
完成比例应为 59%。如果并非如此,请单击 Check Results(检查结果)查看尚未完成哪些必要部分。
任务 6:配置 OSPF 路由
步骤 1. 在 CENTRAL 上配置 OSPF 并传播默认路由。
? ? ? ?
使用进程 ID 1 配置 OSPF。 使用 OSPF 区域 0。
仅添加与 BRANCH 共享的网络。 向 OSPF 相邻设备传播默认路由。
步骤 2. 在 BRANCH 上配置 OSPF。
? ? ?
使用进程 ID 1 配置 OSPF。 使用 OSPF 区域 0。
添加通过 BRANCH 路由的所有网络。
CENTRAL配置命令 configure terminal router ospf 1 network 10.1.1.0 0.0.0.3 area 0 default-information originate end BRANCH配置命令 configure terminal
10