2014年7月23日星期三

How to Configure IPv6 Services in the FTTB/C (No HGWs) Scenario



This section describes the methods for configuring IPv6 services in the FTTB/C (No HGWs) scenario.

Application Scenarios
The FTTB/C networking(no HGW) supports the access of IPv6 HSI services. Generally, no IPTV services will be deployed when there is no HGW.

As shown in Figure 1, the Huawei ONU, which is installed in a corridor or street optical distribution box, transmits services to users through category-5 cables (LAN access) or twisted pairs (xDSL access). The OLT and ONU work with upper-layer devices to support Huawei DS+NAT+PPPoE/DS+NAT+IPoE HSI IPv6 solutions.

1 For voice services: The ONU with a built-in voice module can directly provide VoIP
services for users. The ONU processes VoIP services using the IPv4 protocol instead of
the IPv6 protocol.
2 For Internet access services: Users connect to the ONU through category-5 cables (LAN access) or the modem and twisted pairs (xDSL access). The PC and BRAS support the IPv4/IPv6 DS and can be connected in the PPPoE or IPoE mode. The OLT and ONU
implement Layer 2 forwarding, irrespective of whether the access service is IPv4 or IPv6.
Service configurations for IPv4 and IPv6 are the same. Only the ACL, anti-IP spoofing,
and DHCP option configurations for IPv4 and IPv6 are different.

Figure 1 FTTB/C (no HGW) networking


Procedure
Step 1 Configure GPON ONU profiles.
1. Configure a DBA profile.
huawei(config)#dba-profile add profile-name fttb_dba type3 assure 8192 max
20480

2. Configure an ONU line profile.
huawei(config)#ont-lineprofile gpon profile-id 10 profile-name fttb(c)
huawei(config-gpon-lineprofile-10)#tcont 4 dba-profile-name fttb_dba
huawei(config-gpon-lineprofile-10)#gem add 11 eth tcont 4 cascade on
huawei(config-gpon-lineprofile-10)#gem add 12 eth tcont 4 cascade on
huawei(config-gpon-lineprofile-10)#gem add 13 eth tcont 4 cascade on
huawei(config-gpon-lineprofile-10)#gem mapping 11 0 vlan 8
huawei(config-gpon-lineprofile-10)#gem mapping 12 1 vlan 1001
huawei(config-gpon-lineprofile-10)#gem mapping 13 2 vlan 200
huawei(config-gpon-lineprofile-10)#commit
huawei(config-gpon-lineprofile-10)#quit

3. (Optional) Add an alarm profile.
In this example, the default alarm profile is used and therefore the configuration of the
alarm profile is not required.

Step 2 Add an ONU to an OLT.
Assume that the ID of GPON port 0/2/1 is 1, SN is 32303131B39FD641, management mode is SNMP, and the bound line profile is fttb(c). Connect the ONU to such a GPON port through the optical splitter.

There are two modes to add an ONT: add an ONT offline and confirm an automatically
discovered ONU.
1 Add an ONU offline.
huawei(config)#interface gpon 0/2
huawei(config-if-gpon-0/2)#ont add 1 ontid 1 sn-auth 32303131B39FD641
snmp ont-lineprofile-name fttb(c)

2 Confirm an automatically discovered ONU.
huawei(config)#interface gpon 0/2
huawei(config-if-gpon-0/2)#port 1 ont-auto-find enable
huawei(config-if-gpon-0/2)#display ont autofind 1
huawei(config-if-gpon-0/2)#ont confirm 1 ontid 1 sn-auth 32303131B39FD641
snmp ont-lineprofile-name fttb(c)

3 (Optional) Bind the alarm profile to the ONU.
In this example, default alarm profile 1 is used and therefore the configuration of the alarm
profile is not required.

Step 3 Check the ONU status.
After an ONU is added, run the display ont info command to query the current status of the ONU. Ensure that Config flag of the ONU is active, Run State is online, and Config state is normal.
huawei(config-if-gpon-0/2)#display ont info 1 1
---------------------------------------------------------------------
F/S/P : 0/2/1
ONT-ID : 1
Control flag : active //The ONU is activated.
Run state : online //The ONU is online.
Config state : normal //The ONU configurations are recovered
normally.
...//The rest of the response information is not provided here.
huawei(config-if-gpon-0/2)#quit

Step 4 Configure the inband management VLAN and IP address of the OLT.
huawei(config)#vlan 8 smart
huawei(config)#vlan priority 8 6
huawei(config)#interface vlanif 8
huawei(config-if-vlanif8)#ip address 192.168.50.1 24
huawei(config-if-vlanif8)#quit

Step 5 Configure the inband management VLAN and IP address of the ONU.
huawei(config)#interface gpon 0/2
huawei(config-if-gpon-0/2)#ont ipconfig 1 1 static ip-address 192.168.50.2 mask

255.255.255.0 gateway
192.168.50.254 vlan 8
huawei(config-if-gpon-0/2)#quit

Step 6 Configure an inband management service port.
huawei(config)#service-port 1 vlan 8 gpon 0/2/1 ont 1 gemport 11 multi-service
user-vlan 8 rx-cttr 6 tx-cttr 6

Step 7 Confirm that the management channel between the OLT and the ONU is available.
l On the OLT, run the ping 192.168.50.2 command to check the connectivity between the
OLT and the ONU. The ICMP ECHO-REPLY packet from the ONU should be received.
l On the OLT, you can remote log in to the ONU to perform the configuration.

Step 8 Configure the channel for the Internet access service.
huawei(config)#vlan 100 smart
huawei(config)#vlan attrib 100 stacking
huawei(config)#port vlan 100 0/19 0
huawei(config)#service-port 101 vlan 100 gpon 0/2/1 ont 1 gemport 12 multiservice
user-vlan 1001 tag-transform translate-and-add inner-vlan 258 rx-cttr 6 tx-cttr 6

Step 9 Configure the channel for the VoIP service.
huawei(config)#vlan 200 smart
huawei(config)#port vlan 200 0/19 0
huawei(config)#traffic table ip index 9 cir off priority 5 priority-policy localsetting
huawei(config)#service-port 201 vlan 200 gpon 0/2/1 ont 1 gemport 13 multiservice
user-vlan 200 rx-cttr 9 tx-cttr 9

Step 10 Configure LAG for upstream ports.
Configure upstream ports 0/19/0 and 0/19/1 into an aggregation group. Each member port in the aggregation group allocates packets based on the source MAC address. The working mode is LACP static aggregation.
huawei(config)#link-aggregation 0/19 0-1 ingress workmode lacp-static

Step 11 (Optional) When PPPoE is adopted, enable forwarding the packets with PITP tag on the OLT equipment.
huawei(config)#pitp permit-forwarding service-port 101 enable

Step 12 (Optional) When IPoE is adopted, enable forwarding the packets with DHCP option on the OLT equipment.
huawei(config)#dhcp-option82 permit-forwarding service-port 101 enable //For IPv4
packets
huawei(config)#dhcpv6-option permit-forwarding port 0/2/1 ontid 1 enable //For IPv6 packets

Step 13 Save the configuration data on the Huawei OLT.
huawei(config)#save

Step 14 Log in to and configure the ONU.
You can remote log in to the ONU from the OLT to perform the configuration. By default, the user name is root and the password is mduadmin.
NOTE
The following steps are configured on the ONU side.

Step 15 Configuration the HSI service on the ONU side.

NOTE
This example creates one service port as an example. Each service port maps a user. When configuring another service port, map the corresponding SVLAN.
huawei(config)#vlan 1001-1016 smart
huawei(config)#port vlan 1001-1016 0/0 1
huawei(config)#traffic table ip index 8 cir 4096 priority 0 priority-policy local-Setting
huawei(config)#service-port 101 vlan 1001 eth 0/3/1 multi-service user-vlan
untagged rx-cttr 8 tx-cttr 8

Step 16 (Optional) Configure the PITP function for PPPoE.
huawei(config)#raio-mode common pitp-pmode
huawei(config)#pitp enable pmode

Step 17 (Optional) Configure the DHCP option function for IPoE.
huawei(config)#raio-mode common dhcp-option82 //For DHCPv4 packets
huawei(config)#dhcp option82 enable //For DHCPv4 packets
huawei(config)#raio-mode common dhcpv6-option //For DHCPv6 packets
huawei(config)#dhcpv6 option enable //For DHCPv6 packets

Step 18 Configure the voice service.
huawei(config)#vlan 200 smart
huawei(config)#port vlan 200 0/0 1
huawei(config)#interface vlanif 200
huawei(config-if-vlanif200)#ip address 17.10.10.10 24
huawei(config-if-vlanif200)#quit
huawei(config)#voip
huawei(config-voip)#ip address media 17.10.10.10 17.10.10.1
huawei(config-voip)#ip address signaling 17.10.10.10
huawei(config-voip)#quit
huawei(config)#ip route-static 200.200.200.0 24 17.10.10.1
huawei(config)#interface h248 0
Are you sure to add MG interface?(y/n)[n]:y
huawei(config-if-h248-0)#if-h248 attribute mgip 17.10.10.10 mgport
2944 code text transfer udp primary-mgc-ip1 200.200.200.200 primary-mgc-port
2944 mg-media-ip1 17.10.10.10 start-negotiate-version 1
huawei(config-if-h248-0)#reset coldstart
Are you sure to reset MG interface?(y/n)[n]:y
huawei(config-if-h248-0)#quit
huawei(config)#esl user
huawei(config-esl-user)#mgpstnuser batadd 0/3/0 0/3/23 0 terminalid 0 telno
83110001
huawei(config-esl-user)#mgpstnuser modify 0/3/0 priority cat2
huawei(config-esl-user)#quit
huawei(config)#pstnport
huawei(config-pstnport)#pstnport attribute batset 0/3/0 0/3/23 reverse-pole-pulse
enable
huawei(config-pstnport)#quit

Step 19 Save the configuration on the ONU side.
huawei(config)#save
----End

More related:

2014年7月14日星期一

How to Configure the DHCP Option60 Mode for Huawei OLT



This topic is applicable to the scenario for specifying the corresponding DHCP servers for different option60 domain users. This configuration also works for Huawei MA5680T, Huawei MA5606T, Huawei MA5608T.

Prerequisites

A VLAN must be created.
Before the configuration, determine the option60 domain name of the user terminal.

Background Information

When multiple services are provisioned on the MA5600, such as video multicast and IP telephone services, the services are provided by different service providers. The service providers may use different relay IP addresses of the same DHCP server or different DHCP servers to allocate IP addresses to users. Therefore, configure the users to apply for IP addresses from the DHCP server in the DHCP option60 mode.
In the DHCP option60 mode, the DHCP server group is selected according to the character string (namely, domain name) in the option60 of DHCP packets. Here, the option60 domain name and the DHCP server group to which the domain name is bound need to be configured beforehand. In this mode, users are differentiated according to the domain information in the packet, and different service types in the same VLAN can also be differentiated.

Procedure

1.           Configure the DHCP forwarding mode.
In the global config mode, run the dhcp mode layer-3 option60 command to configure the DHCP relay mode to L3 option60 mode (layer-3, option60). If keyword VLAN is selected and VLANID is entered, this configuration takes effect only for this VLAN.
2.           Configure the DHCP server group.
a.                In the global config mode, run the dhcp-server command to create a DHCP server group.
·                           igroup-number: Indicates the number of the DHCP server group. It identifies a server group. You can run the display dhcp-server all-group command to query the DHCP server groups that are already configured and select a DHCP server group number that is not used by the system.
·                           ip-addr: Indicates the IP address of the DHCP server in the DHCP server group. Up to four IP addresses can be entered.
 NOTICE:
The IP address of the DHCP server configured here must be the same as the IP address of the DHCP server on the network side.
b.                (Optional) Run the dhcp server mode command to configure the working mode of the DHCP server.
The DHCP servers in the DHCP server group can work in the load balancing mode or active/standby mode. By default, they work in the load balancing mode.
3.           Create a DHCP option60 domain.
In the global config mode, run the dhcp domain command to create a DHCP domain, and then enter the DHCP domain mode. The option60 domain name needs to be configured according to the type of the terminal connected to the device. For the DHCP client installed with the Windows 98/2000/XP/NT series of OSs, the domain name must be msft.
4.           Bind the DHCP option60 domain to the DHCP server group.
In the option60 domain mode, run the dhcp-server command to bind the DHCP domain to the DHCP server group. After the configuration is completed, the DHCP clients belonging to the DHCP correspond to the DHCP server group.
5.           Configure the IP address of the gateway corresponding to the DHCP domain.
a.                In the global config mode, run the interface vlanif command to create a VLAN L3 interface.
The VLAN ID must be the same as the ID of the VLAN described in the prerequisite.
b.                In the VLANIF mode, run the ip address command to configure the IP address of the VLAN L3 interface.
After the configuration is completed, this IP address is used as the source IP address for forwarding the IP packets in the VLAN at L3.
 NOTICE:
·                           If only an L2 device exists between the MA5600 and the DHCP server, the IP address of the VLAN L3 interface needs to be in the same subnet as the IP address of the DHCP server.
·                           If the upper-layer device of the MA5600 is an L3 device, the IP address of the VLAN L3 interface and the IP address of the DHCP server can be in different subnets; however, a route must exist between the VLAN L3 interface and the DHCP server. For details, see Configuring the Route.
c.                In the VLANIF mode, run the dhcp domain gateway command to configure the IP address of the gateway corresponding to the DHCP domain.
The IP address of the gateway must be a configured IP address of the VLAN interface. Under the same VLAN interface, different option60 domains can be configured with different gateways. Therefore, different DHCP servers can be selected according to the domain information in the packet.

Example

Assume that server group 2 contains two DHCP servers working the load balancing mode, with the IP address of the primary server 10.10.10.10 and the IP address of the secondary server 10.10.10.11. To bind server group 2 to users whose option60 domain name is msft in VLAN 2 (with the IP address of the L3 interface 10.1.2.1/24), do as follows:
huawei(config)#dhcp mode layer-3 Option60
huawei(config)#dhcp-server 2 ip 10.10.10.10 10.10.10.11
huawei(config)#dhcp domain msft
huawei(config-dhcp-domain-msft)#dhcp-server 2
huawei(config-dhcp-domain-msft)#quit
huawei(config)#interface vlanif 2
huawei(config-if-vlanif2)#ip address 10.1.2.1 24
huawei(config-if-vlanif2)#dhcp domain msft gateway 10.1.2.1