因为规模越来越大,目前需要增加路由器用于把无线和新增区域的无线网改迁到新的路由器上,新路由器的型号是H3C MSR56-60
这是路由器的配置
<H3C>dis version
H3C Comware Software, Version 7.1.064, Release 6749P2102
Copyright (c) 2004-2024 New H3C Technologies Co., Ltd. All rights reserved.
H3C MSR56-60 uptime is 4 weeks, 5 days, 14 hours, 20 minutes
Last reboot reason : Power on
Boot image: cfa0:/msr56-cmw710-boot-r6749p2102.bin
Boot image version: 7.1.064P80, Release 6749P2102
Compiled Jan 04 2024 16:00:00
System image: cfa0:/msr56-cmw710-system-r6749p2102.bin
System image version: 7.1.064, Release 6749P2102
Compiled Jan 04 2024 16:00:00
Slot 0: MPU-100 uptime is 4 weeks, 5 days, 14 hours, 20 minutes
Last reboot reason : Power on
CPU ID: 0x3
2G bytes DDR3 SDRAM Memory
8M bytes Flash Memory
PCB Version: 2.0
CPLD Version: 3.0
Basic BootWare Version: 1.71
Extended BootWare Version: 1.71
[SUBSLOT 0]CON (Hardware)2.0, (Driver)1.0, (CPLD)3.0
[SUBSLOT 0]AUX (Hardware)2.0, (Driver)1.0, (CPLD)3.0
[SUBSLOT 0]MGE0 (Hardware)2.0, (Driver)1.0, (CPLD)3.0
Slot 2: SPU-300 uptime is 4 weeks, 5 days, 14 hours, 18 minutes
Last reboot reason : Power on
CPU ID: 0x9
4G bytes DDR3 SDRAM Memory
8M bytes Flash Memory
PCB Version: 2.0
CPLD Version: 2.0
Basic BootWare Version: 1.50
Extended BootWare Version: 1.50
[SUBSLOT 0]GE2/0/0 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 0]GE2/0/1 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 0]GE2/0/2 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 0]GE2/0/3 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 0]XGE2/0/4 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 0]CELLULAR2/0/0 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 0]CELLULAR2/0/1 (Hardware)2.0, (Driver)1.0, (CPLD)2.0
[SUBSLOT 5]HMIM-24GSWP (Hardware)2.0, (Driver)1.0, (CPLD)0.0
[SUBSLOT 6]HMIM-2VE1 (Hardware)3.0, (Driver)1.0, (CPLD)1.0
[SUBSLOT 9]VPM-128 (Hardware)2.0, (Driver)1.0, (CPLD)0.0
下面配置路由器,因为是几条PPPoE宽带,下面就直接跳过PPPoE的配置,PPPoE配置NAT的过程这里省略不配;
下面是配置默认路由和VLAN IP,因为无线网分三个区域,VLAN 11,VLAN 6,VLAN 10
这三个区域分别对应三个厂房的普通无线网,共用6条普通PPPoE宽带(没有公网地址)
配置几条VLAN的地址这里就省略,
下面是配置PPPoE拨号的模板
interface Dialer0
mtu 1492
ppp chap password cipher 宽带密码密文
ppp chap user 宽带账号
ppp ipcp dns admit-any
ppp ipcp dns request
ppp pap local-user 宽带账号 password cipher 宽带密码密文
dialer bundle enable
dialer-group 1
dialer timer idle 0
dialer timer autodial 5
ip address ppp-negotiate
tcp mss 1280
ip last-hop hold
nat outbound
这里的Dialer0表示的是逻辑接口Dialer0,因为PPPoE拨号不是直接作用在interface的,是作用在PPP的逻辑接口;
上面的password cipher表示的宽带账号的密文,如果输入密码则会拨号不成功,如果不想设置密文就用 password simple,这个就是输入明文密码,这个密码在储存后就是密文,如果密码忘记了就下次直接用password cipher密文填入也可能正常拨号的
下面应用到接口
假设我的物理接口是G2/0/0
int gi 2/0/0
port link-mode route
description Multiple_Line1
ip last-hop hold
pppoe-client dial-bundle-number 0
这里的pppoe-client表示的就是配置逻辑接口0到gi 2/0/0接口上
然后下面配置默认路由(因为没有固定地址,直接配置到逻辑接口上)
ip route-static 0.0.0.0 Dialer0
评论