M6000É豸ҵÎñ¿ªÍ¨ÅäÖÃʵÀý
Ö£ÖÝ´¦ ÔÑÓ·É
ÍØÆËͼ
SR-1VLAN .199,256-999/3001£»VLAN 199,256-999/3002£»VLAN 199,256-999/3003£»VLAN 199,256-999/3004£»VLAN 4005£»VLAN 4006£»»òÕßVLAN 4006/3004gei-0/0/0/7gei-0/0/0/1CRSPPPOEÒµÎñ:VLAN 199,256-999/3003£»(QinQÖ±½Ó͸´«ÖÁBRAS)PPPOEÒµÎñ:VLAN 199,256-999/3004£»(QinQÖ±½Ó͸´«ÖÁBRAS)L3VPNÒµÎñ£ºVLAN 4006£»»òÕßVLAN 4006/3004£»£¨ÒÔSR-1ÎªÍø¹Ø£¬Í¸´«ÖÁSR-1£©L3VPNÒµÎñ£ºVLAN3200¡¢3211£»»òÕßVLAN 3200¡¢3211/3004£¨ÒÔSR-M6000ÎªÍø¹Ø£¬ÖÕ½áVLANÉÏL3VPN£©BRASsmartgroup1.1SR-M6000gei-0/0/0/6gei-0/0/0/5PPPOEÒµÎñ:VLAN 199,256-999£»(´òÉÏÍâ²ãVLAN3002͸´«ÖÁBRAS)gei-0/0/0/4L3VPNÒµÎñ£ºVLAN 4005£»£¨ÒÔSR-1ÎªÍø¹Ø£¬Í¸´«ÖÁSR-1£©8912-SW1L3VPNÒµÎñ£ºVLAN3000¡¢3111£»£¨ÒÔSR-M6000ÎªÍø¹Ø£¬ÖÕ½áVLANÉÏL3VPN£©PPPOEÒµÎñ:VLAN 199,256-999£»(´òÉÏÍâ²ãVLAN3001͸´«ÖÁBRAS)AG-1PPPOEÒµÎñ:VLAN 199,256-999£»(´òÉÏÍâ²ãVLAN3004͸´«ÖÁM6000)DSLAM-1DSLAM-2AG-2PPPOEÒµÎñ:VLAN 199,256-999£»(´òÉÏÍâ²ãVLAN3003͸´«ÖÁM6000)L3VPNÒµÎñ£ºVLAN 4006£»£¨Í¸´«ÖÁM6000/»òÕß´òÉÏÍâ²ãVLAN3004£©L3VPNÒµÎñ£ºVLAN3200¡¢3211£»£¨Í¸´«ÖÁM6000/»òÕß´òÉÏÍâ²ãVLAN3004£©
Ò»¡¢ M6000Ö±¹Ò¹âÏËÓû§
1.IP£º218.28.90.1/29 ¶Ë¿Úgei-0/0/1/1 £¨²»·â×°VLAN£©
2.IP£º218.28.90.1/29 ¶Ë¿Úgei-0/0/1/2ÓÃ218.28.90.2£¨²»·â×°VLAN£© ¶Ë¿Úgei-0/0/1/3ÓÃ218.28.90.3£¨²»·â×°VLAN£©£¨Èç¹ûÊý¾ÝÉϲ»ÄÜÕâÑù×ö ±êעϾÍÐÐ
Èç²»²ÉÓÃsupervlan·½Ê½½ÓÈëÎÞ·¨½«Ò»¸öµØÖ·¶Î·ÖÅ䏸¶à¸ö½Ó¿ÚʹÓ㬷´Ö®Ôò¿ÉÒÔ
A¡¢Ò»¸öµØÖ·¶Î·ÖÅ䏸µ¥Ò»½Ó¿ÚÅäÖ÷½·¨£º Interface gei-0/0/1/1
Ip add 218.28.90.1 255.255.255.248
B¡¢Ò»¸öµØÖ·¶Î·ÖÅ䏸¶à¸öÎïÀí½Ó¿ÚÅäÖ÷½·¨£¨supervlan£©£º interface supervlan4000 ½¨Á¢supervlan½Ó¿Ú£¨vlan idºÅ¸ù¾Ý¹æ»®½øÐÐÅäÖ㬱¾Àý²ÉÓÃ4000£© ip address 218.28.90.1 255.255.255.248 ÔÚsupervlanÔÚÅäÖõØÖ·¶Î
supervlan ½øÈësupervlanÅäÖÃģʽ°ó¶¨supervlanÏÂÏà¹Ø½Ó¿Ú Interface gei-0/0/1/2 °ó¶¨Ïà¹ØÒµÎñ¶Ë¿Ú0/0/1/2
supervlan 4000
vlanpool 218.28.90.2 218.28.90.2 °ó¶¨´Ë¶Ë¿ÚËù·ÖÅäµÄIPµØÖ· Interface gei-0/0/1/3 °ó¶¨Ïà¹ØÒµÎñ¶Ë¿Ú0/0/1/3 supervlan 4000
vlanpool 218.28.90.3 218.28.90.3 °ó¶¨´Ë¶Ë¿ÚËù·ÖÅäµÄIPµØÖ·
3.IP£º218.28.90.1/29 vlan£º100 ¶Ë¿Úgei-0/0/1/4 A¡¢½¨Á¢Ïà¹ØÒµÎñ×Ó½Ó¿Ú£¬ÅäÖÃIP
Interface gei-0/0/1/4.100 (×ӽӿںſɸù¾Ý¹æ»®ÅäÖ㬱¾Àý²ÉÓúÍvlan idºÅÒ»ÖÂ) Ip address 218.28.90.1 255.255.255.248
B¡¢ÔÚvlanÅäÖÃģʽÏÂÅäÖÃÏà¹ØvlanÐÅÏ¢²¢¹ØÁªÏà¹Ø×Ó½Ó¿Ú vlan-configuration
interface gei-0/0/1/4.100 encapsulation-dot1q 100
4.IP£º218.28.90.1/29 »ã¾ÛVLAN£º100 ×ÓVLAN£º101-102 ¶Ë¿Úgei-0/0/1/5 vlanÓÃ101 IPÓà 218.28.90.2 ¶Ë¿Úgei-0/0/1/6 vlanÓÃ102 IPÓà 218.28.90.3
´ËÀýÐèҪʹÓÃsupervlan¼Ó×Ó½Ó¿Ú·½Ê½ÊµÏÖ
A¡¢ ½¨Á¢Ïà¹ØÒµÎñ×Ó½Ó¿Ú£¨½¨ÒéÌí¼Ó×Ó½Ó¿ÚÒµÎñÃèÊö£©
Interface gei-/0/0/1/5.101 Interface gei-/0/0/1/6.102
B¡¢VlanÅäÖÃģʽÏ·â×°Ïà¹Ø×Ó½Ó¿Úvlan vlan-configuration
interface gei-0/0/1/5.101 encapsulation-dot1q 101 vlan-configuration
interface gei-0/0/1/6.102 encapsulation-dot1q 102
C¡¢´´½¨supervlan½Ó¿Ú²¢ÅäÖÃIPµØÖ·
interface supervlan100 ½¨Á¢supervlan½Ó¿Ú£¨vlan id²ÉÓÃ100£©
ip address 218.28.90.1 255.255.255.248 ÔÚsupervlanÔÚÅäÖõØÖ·¶Î
D¡¢ÔÚsupervlanÅäÖÃģʽϰó¶¨Ïà¹Ø×Ó½Ó¿ÚºÍsupervlan supervlan ½øÈësupervlanÅäÖÃģʽ
Interface gei-0/0/1/5.101 ½øÈë×Ó½Ó¿Ú0/0/1/5.101 Supervlan100 °ó¶¨supervlan100
Interface gei-0/0/1/6.102 ½øÈë×Ó½Ó¿Ú0/0/1/5.101 Supervlan100 °ó¶¨supervlan100
¶þ¡¢ M6000Ö±¹Ò½»»»»ú
Ϲҽ»»»»ú ͸´«VLAN 100 200 300 ¶Ë¿Úgei-0/0/0/3
A¡¢ÆôÓÃ×Ó½Ó¿Ú·â×°Ïà¹Øvlan£¨×Ó½Ó¿ÚIDºÅ¸ù¾Ý¹æ»®½øÐÐÅäÖã© Interface gei-0/0/0/3.100 ÆôÓÃ×Ó½Ó¿ÚIDºÅ¿ÉÁé»î·ÖÅä description TO-XingXing ½¨ÒéÌí¼ÓÒµÎñÃèÊöÐÅÏ¢ Interface gei-0/0/0/3.200 ÆôÓÃ×Ó½Ó¿ÚIDºÅ¿ÉÁé»î·ÖÅä Interface gei-0/0/0/3.300 ÆôÓÃ×Ó½Ó¿ÚIDºÅ¿ÉÁé»î·ÖÅä B¡¢ ÔÚvlan-configģʽÏ·â×°Ïà¹Ø×Ó½Ó¿ÚvlanÐÅÏ¢
Vlan-config
interface gei-0/0/0/3.100 encapsulation-dot1q 100
interface gei-0/0/0/3.200 encapsulation-dot1q 200
interface gei-0/0/0/3.300 encapsulation-dot1q 300
×¢£ºÒ²¿ÉÒÔÔÚ1¸ö×Ó½Ó¿ÚÖзâ×°¶à¸öÁ¬ÐøµÄ£¬ÈçÏ vlan interface gei-0/0/0/3.100
encapsulation-dot1q range 100-300 encapsulation-dot1q range 500-600
Èý¡¢ M6000ÓëBRAS½øÐÐÁ´Â·¾ÛºÏ°ó¶¨ ¶Ë¿Úgei-0/0/0/6
¶Ë¿Úgei-0/0/0/7 °ó¶¨¾ÛºÏ ²¢Í¸´«SVLAN 3001 3002 A¡¢smartgroupÅäÖã¨BAS--SR£©
interface smartgroup 1 ½¨Á¢Á´Â·¾ÛºÏ×飬½¨ÒéÔÚsmartgroupÏÂÌí¼ÓÃèÊöÐÅÏ¢ lacp ½øÈëÁ´Â·¾ÛºÏÅäÖÃģʽ,°ó¶¨¾ÛºÏ¶Ë¿Ú interface gei-0/0/0/6
smartgroup 1 mode on
interface gei-0/0/0/7
smartgroup 1 mode on
b¡¢·â×°SVLAN 3001 3002
interface smartgroup1.1 ½¨Á¢smartgroup×Ó½Ó¿Ú£¬IDºÅ¸ù¾Ý¹æ»®ÅäÖà !
vlan-configuration ÔÚvlanÅäÖÃģʽÏ·â×°Ïà¹ØsvlanÐÅÏ¢ interface smartgroup1.1
encapsulation-dot1q range 3001-3002
c¡¢²ÉÓÃvpls 2²ãvpn·½Ê½Í¸´«svlan
mpls l2vpn enable È«¾ÖģʽÏÂÆóÒµ2²ãvpn
vpls zte1 qualified ½¨Á¢vplsʵÀý£¬ÊµÀýÃû³Æ¸ù¾Ý¹æ»®ÅäÖà sac smartgroup1.1 °ó¶¨Ïà¹Ø×Ó½Ó¿ÚÖÁvpls service-define ethernet Ö¸¶¨½Ó¿ÚÀàÐÍ
ËÄ¡¢ M6000Ö±¹ÒPPPOE DSLAM 1.ϹҴ¿²¦ºÅDSLAM ¶Ë¿Ú£ºgei-0/0/0/4 SVLAN £º3001 ÄÚ²ã¹ÜÀíVLAN:199 ÒµÎñVLAN£º256-999 2.ϹҴøÓÐVPNÓû§µÄDSLAM ¶Ë¿Ú£ºgei-0/0/0/5 SVLAN £º2333£» ÄÚ²ã¹ÜÀíVLAN:199£» ÒµÎñVLAN£º256-1500£» VPNÓû§VLAN£º300 3111 4005£¨VPNÓû§Íø¹ØÔÚM6000ÉÏ£©--´ËÀý¼ûÁù
MS-JZ-MZS-ZTEM6000-001(config)#$g-config-interface gei-0/0/0/13.2342 !
interface gei-0/0/0/13.2342 $
! !
vlan-configuration
interface gei-0/0/0/13.2342
encapsulation-dot1q range 199
encapsulation-dot1q range 256-1500 $ $
! !
vpls dslam multi-mac-spaces access-point gei-0/0/0/13.2342 access-params ethernet ingress-adjust push 2342 $
Îå¡¢ M6000×é3²ãMPLS VPN ÍøÂç
VRF Ãû³Æ : test RD: 377:1008 RT:377:1008 ÖÐÐĶ˻¥Áª¶Ë¿Ú£ºgei-0/0/1/7 »¥ÁªIP£º10.1.1.1/30
¾²Ì¬Â·ÓÉ 172.16.1.0 255.255.255.0 NEXT-HOST 10.1.1.2 Óû§Íøµã¶Ë¿Ú£ºgei-0/0/1/8 ÍøµãIP£º10.1.2.1/24
ip vrf test ½¨Á¢VPNʵÀý description TO-MPLS-VPN-TEST
rd 377:1008 ÅäÖÃRDÖµ£¬ÒªÇóºÍÈ«Íø¹æ»®Ò»Ö route-target import 377:1008 route-target export 377:1008
address-family ipv4 Ö¸¶¨µØÖ·¸ñʽ $
Interface gei-0/0/1/7 ¹ØÁªÒµÎñÉÏÁª¶Ë¿Ú ip vrf forwarding test
ip add 10.1.1.1 255.255.255.252
Interface gei-0/0/1/8 ¹ØÁªÒµÎñÏÂÁª¶Ë¿Ú
ip vrf forwarding test
ip add 10.1.2.1 255.255.255.252
ip route vrf test 172.16.1.0 255.255.255.0 10.1.1.2 ÅäÖþ²Ì¬VPN·ÓÉ
router bgp 65147 $
address-family ipv4 vrf test ÔÚBGPÄÚÒýÈëÖ±Á¬¡¢¾²Ì¬Â·ÓÉ
redistribute connected redistribute static Áù¡¢
M6000×é2²ãVPLS VPN ÍøÂç
»ùÓÚÒÔÉÏ7750É豸VPLS ·½Ê½¿çPE͸´«¿í´øPPPÒµÎñvlan¼°VPN vlanÔÚM6000ÉÏÊý¾Ý¸ÃÈçºÎÅ䣿£¨gei-0/0/0/5ϹÒDSLAM vpn vlan-3000-3001£¬¿í´øsvlan3002£¨199,256-999£©
VPLS PEÁÚ¾ÓÅäÖã¨ÒªÇóÈ«Íø¹æ»®vcidÒªÒ»Ö£© vpls zhongshihua default-vcid 1 mtu 1518 sdu sdu2
neighbour 61.168.69.62 1 encapsulation tagged $ sdu sdu1
neighbour 61.168.69.61 1 encapsulation tagged
$
¡¡ //ÆäËûPEÁÚ¾ÓÅäÖÃͬÉÏ Óû§²à½Ó¿Ú¼°VLANÅäÖà interface gei-0/0/0/5.3002 description to-dslam-pppoe interface gei-0/0/0/5.3000 description to-dslam-vpn !
vlan-configuration
interface gei-0/0/0/5.3002
encapsulation-dot1q range 256-999 encapsulation-dot1q range 199 interface gei-0/0/0/5.3000
encapsulation-dot1q range 3000-3001
vpls zhongshihua qualified //2²ãvpnÓû§½ÓÈëÖÐʯ»¯vpls sac gei-0/0/0/5.3000 service-define ethernet $
vpls zte1 qualified //vpls·½Ê½Í¸´«2²ãvlan
sac gei-0/0/0/5.3002 service-define ethernet ingress-adjust push 3002 //Óû§½ÓÈë²àÌí¼ÓÍâ²ã±êÇ©3002
sac smartgroup1.3002 //BAS»¥Áª½Ó¿Ú service-define ethernet
µ±Ç°×î³£ÓõÄ2ÖÖÒµÎñÓÖ¸ÃÈçºÎÅäÖã¿
A¡¢ ÈçDSLAMÏÂvlan3000¡¢3111µÈ3²ãVPNÓû§Íø¹ØÔÚM6000ÉÏ£¨µ¥²ã±êÇ©ÖÕ½áÔÚM6000)£¬ÇÒDSLAMÏÂPPPOE¿í´øÒµÎñvlan199¡¢256-999µÈ´òÉÏÍâ²ã±êÇ©3002͸´«ÖÁBAS·½Ïò,M6000ÓëBAS»¥Áª¶Ë¿ÚΪsmartgroup1.1£¬Ï¹ÒDSLAMÉ豸¶Ë¿ÚΪgei-0/0/0/48¸ÃÈçºÎÅäÖã¿
3²ãVPNÓû§vlanÖÕ½áÔÚm6000
interface gei-0/0/0/48.3000 //3²ãVPNÅäÖÃÇë²Î¿¼ÀýÎå ip address X.X.X.X *.*.*.*
encapsulation-dot1q range 3000-3001
PPP¿í´øÒµÎñÅäÖÃ
nterface gei-0/0/0/48.3002 //Óû§²àppp¿í´ø½Ó¿Ú interface smartgroup1.3000 //ÓëBAS»¥Áª¿Ú
ip vrf forwarding test
interface gei-0/0/0/48.3000
vlan-configuration
interface gei-0/0/0/48.3002
encapsulation-dot1q range 256-999
vpls·½Ê½ÊµÏÖ¶þ²ãvlan͸´«
encapsulation-dot1q range 199-199
vpls test1 qualified
sac smartgroup1.3000
service-define ethernet
sac gei-0/0/0/48.3002
service-define ethernet
$
ingress-adjust push 3002
B¡¢ÈçDSLAMÏÂVPNÓû§Íø¹ØÔÚÓëM6000»¥ÁªµÄÁíÍâһ̨3²ãÉ豸ÉÏ£¨ÒªÇóM6000½«vpnÓû§
vlan3000-3001͸´«ÖÁÁíÍâһ̨3²ãÉ豸£¬»¥Áª¶Ë¿Úgei-0/0/0/4£©,ÇÒͬʱÐèÒª½«DSLAM PPPOE¿í´øÒµÎñVLAN 199,256-999´òÉÏÍâ²ã±êÇ©3002͸´«ÖÁBAS(gei-0/0/0/48ÏÂÁªdslam)£¬ÓëBAS»¥Áª¶Ë¿Úsmartgroup1.3002--¸ÃÈçºÎÅäÖã¿
PPP¿í´øÒµÎñÅäÖÃ
interface gei-0/0/0/48.3002 //Óû§²àppp¿í´ø½Ó¿Ú interface smartgroup1.3002 //ÓëBAS»¥Áª¿Ú
vlan-configuration
interface gei-0/0/0/48.3002
encapsulation-dot1q range 256-999
vpls·½Ê½ÊµÏÖ¶þ²ãvlan͸´«
encapsulation-dot1q range 199-199
vpls test1 qualified
sac smartgroup1.3002
service-define ethernet
sac gei-0/0/0/48.3002
service-define ethernet
$
VpnÓû§Í¸´«ÖÁÁíÍâÒ»3²ãÉ豸ÅäÖà Interface gei-0/0/0/4.3000 Des TO-ASBR-TEST
Interface gei-0/0/0/48.3000 Des TO-DSLAM-VPN
vlan-configuration
encapsulation-dot1q range 3000-3001 encapsulation-dot1q range 3000-3001
vpls·½Ê½ÊµÏÖ¶þ²ãvlan͸´«
ingress-adjust push 3002
interface gei-0/0/0/48.3000
interface gei-0/0/0/4.3000
vpls test1 qualified
sac Interface gei-0/0/0/4.3000
service-define ethernet
sac gei-0/0/0/48.3000
service-define ethernet
Æß¡¢ É豸ÉÏÁªCRSÊý¾Ý
¶Ë¿Ú£ºgei-0/0/0/1 »¥ÁªIP£º 222.142.161.18/30 M6000 SRÉÏÁªCRS ·ÓÉÊý¾ÝÅäÖã¨BGP¡¢OSPF£© A¡¢ ÉÏÁª½Ó¿ÚÊý¾ÝÅäÖà interface gei-0/0/0/1
description ny-xx-m6000-001 (gei-0/0/0/1):GE:001_to_ny-xdl-crs-001(G0/9/0/8) no shutdown
ip address 222.142.161.18 255.255.255.252 mpls ldp instance 1 interface gei-0/0/0/1 pmconfig
interface gei-0/0/0/1
negotiation negotiation-force
B¡¢BGP·ÓÉÊý¾ÝÅäÖà router bgp 65147 no synchronization maximum-paths ibgp 8 redistribute connected redistribute static
neighbor ha-ny peer-group
neighbor ha-ny remote-as 65147 neighbor ha-ny activate
neighbor ha-ny password password
neighbor ha-ny route-map setcommunity out neighbor ha-ny send-community
neighbor ha-ny update-source loopback1 neighbor ha-ny-vpn peer-group
neighbor ha-ny-vpn remote-as 65147 no neighbor ha-ny-vpn activate
neighbor ha-ny-vpn password password neighbor ha-ny-vpn send-community
neighbor ha-ny-vpn update-source loopback10 neighbor 61.168.255.224 peer-group ha-ny
neighbor 61.168.255.224 description ny-xdl-r-001 neighbor 61.168.255.225 peer-group ha-ny
neighbor 61.168.255.225 description ny-gyl-r-001 neighbor 61.168.232.224 peer-group ha-ny-vpn neighbor 61.168.232.224 description ny-xdl-r-001 neighbor 61.168.232.225 peer-group ha-ny-vpn neighbor 61.168.232.225 description ny-gyl-r-001 address-family vpnv4
neighbor ha-ny-vpn activate
C¡¢OSPF·ÓÉÅäÖà router ospf 100
router-id 222.142.163.68 maximum-paths 8 interface gei-0/0/0/1 mtu-ignore
network point-to-point $
interface gei-0/0/0/2 mtu-ignore
network point-to-point $
network 222.142.161.16 0.0.0.3 area 0.0.1.121 network 222.142.161.36 0.0.0.3 area 0.0.1.121 network 222.142.163.68 0.0.0.0 area 0.0.1.121 network 222.142.164.68 0.0.0.0 area 0.0.1.121
show runn ÔËÐÐÅäÖò鿴
show process cpu²é¿´
sho logging alarm ¸æ¾¯²é¿´
sho logfile ²Ù×÷¼Ç¼²é¿´
show running-config-interface gei-0/0/0/1 ½Ó¿ÚÅäÖò鿴
show running-config bgp bgp·Óɲ鿴
show running-config ospf ospf·Óɲ鿴
sho interface-vlan dot1q ½Ó¿Úvlan²é¿´
sho ip interface brief É豸½Ó¿Ú״̬²é¿´
sho interface description ½Ó¿ÚÃèÊö²é¿´
sho ip forwarding route È«¾Ö·Óɱí²é¿´
sho ip forwarding route vrf zhongshihua ÖÐʯ»¯vpn·Óɲ鿴
sho l2vpn brief 2²ãvpn²é¿´
show running-config supervlan supervlanÅäÖò鿴