Monday, January 2, 2017

The Port Bind Configuration of bind(distributing-mode)

Function

This command is used to bind an IP address to a service port. To specify a permitted IP address for a service port, run this command. After the IP address is successfully bound to a service port, the device allows only upstream packets whose source IP address is the bound IP address to pass.
The undo bind command is used to unbind an IP address from a service port. After the IP address is unbound from the service port, the device does not filter upstream packets by source IP address.

Format

bind ip atm frameid/slotid/portid vpi vpi vci vci [ single-service ] ip-addr [ ipmasklength ]
bind ip { adsl | shdsl } frameid/slotid/portid { vpi vpi vci vci { single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] } | autosense } ip-addr [ ipmasklength ]
bind ip eth frameid/slotid/portid { stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] } ip-addr [ ipmasklength ]
bind ip vdsl frameid/slotid/portid { stream | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] | autosense } ip-addr [ ipmasklength ]
bind ip vdsl frameid/slotid/portid vpi vpi vci vci { single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] } ip-addr [ ipmasklength ]
bind ip service-port index { ip-addr [ ipmasklength ] | ipv6-addr/prefix-length }
bind ip gpon frameid/slotid/portid gemport gemportid [ user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] ip-addr [ ipmasklength ]
undo bind ip service-port index { ip-addr | all | ipv6-addr/prefix-length }
undo bind ip gpon frameid/slotid/portid [ gemport gemportid [ { user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] } ] { ip-addr [ ipmasklength ] | all } ]
undo bind ip { adsl | shdsl | vdsl | atm | eth } frameid/slotid/portid all
undo bind ip { adsl | shdsl } frameid/slotid/portid { vpi vpi vci vci [ single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p ] | autosense } { ip-addr [ ipmasklength ] | all }
undo bind ip atm frameid/slotid/portid { all | vpi vpi vci vci [ single-service ] { ip-addr [ ipmasklength ] | all } }
undo bind ip eth frameid/slotid/portid [ user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] { ip-addr [ ipmasklength ] | all }
undo bind ip vdsl frameid/slotid/portid [ user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] | autosense ] { ip-addr [ ipmasklength ] | all }
undo bind ip vdsl frameid/slotid/portid vpi vpi vci vci [ single-service | user-encap user-encap | user-vlan { untagged | user-vlanid } | user-8021p user-8021p [ user-vlan user-vlanid ] ] { ip-addr [ ipmasklength ] | all }

Parameters

Parameter Description Value
ip Indicates the IP address. -
adsl Binds an ADSL service port to an IP address. To access the network in the ADSL mode, use this parameter. -
shdsl Binds an SHDSL service port to an IP address. To access the network in the SHDSL mode, use this parameter. -
atm Binds an ATM service port to an IP address. To access the network in the ATM mode, use this parameter. -
eth Binds an ETH port to an IP address. To access the network in the ETH mode, use this parameter. -
vdsl Binds a VDSL2 service port to an IP address. To access the network in the VDSL2 mode, use this parameter. -
gpon Binds a GPON service port to an IP address. To access the network in the GPON mode, use this parameter. -
frameid/slotid/portid Indicates the subrack ID, slot ID, and port ID. Enter a slash (/) between the subrack, slot, and port IDs. To specify the physical port to which a service port belongs, use this parameter. Please see Differences Between Shelves.
vpi vpi Indicates VPI value of the service port. Identifies a virtual path when used with the VCI value.
Numeral type. Range:
  • xDSL board. Range: 0-255.
  • Other boards. Range: 0-4095.
vci vci Indicates VCI value of the service port. Identifies a virtual path when used with the VPI value.
  • Numeral type. xDSL board. Range: 32-255.
  • Numeral type. Other boards. Range: 32-65535.
single-service When the port type is single service port for single service, use this parameter. -
autosense When a service port needs to automatically learn user-side VPI/VCI, use this parameter. -
stream In the ETH or VDSL PTM access mode and for single port for single service, to bind a port to an IP address, use this parameter. -
user-vlan Indicates user-side VLAN of a service port. To bind an IP address to a service port whose user-side VLAN ID is specified, use this parameter. -
user-vlanid Indicates the VLAN ID. It uniquely identifies a VLAN. Numeral type. Range: 1-4095.
user-8021p user-8021p Indicates the user-side 802.1p priority of the service port. To bind an IP address to a service port whose user-side 802.1p priority is specified, use this parameter. Numeral type. Range: 0-7.
user-encap user-encap Indicates user-side encapsulation type of a service port. To bind an IP address to a service port whose user-side encapsulation type is specified, use this parameter. Enumerated type. Options: pppoe, ipoe.
untagged When the service port needs to carry multiple services and the services are differentiated by the user side VLAN, you can specify the packet type as untagged.
An untagged data packet does not contain the VLAN information.
-
ip-addr Indicates the IP address. Dotted decimal notation. It can be only a unicast IP address. IPv4 address format. Dotted decimal notation.
ipmasklength Indicates the length of an IP address mask. You can choose to specify the length or not. When the mask length is not specified, a single IP address is bound. When the mask length is specified, all IP addresses in the subnet that is specified by the IP address and the mask are bound. Numeral type. Range: 17-31.
ipv6-addr Indicates the IPv6 address. IPv6 address format. Colon hexadecimal notation. Range: 0:0::0-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ("::" indicates that the field value between them is 0).
prefix-length Indicates the subnet prefix length of the IPv6 address. It is used with ipv6-prefix to specify a destination subnet. Numeral type. Range: 1-64.
all Indicates that all service ports are unbound under a specified physical port from the IP address or a specified service port from all IP addresses is unbound. -
service-port index Indicates the service port ID. It uniquely identifies a service port.
Numeral type,Range:
  • SCUK/SCUL/SCUN:0-32767.
  • SCUB/SCUF:0-16383.
  • SCUH/SCUV:0-131071.
  • MCUD/MCUD1/MCUE:0-20479.
gemport gemportid Indicates the GEM port ID. GEM ports of each PON port are numbered in a centralized way. GEM ports 0-127 are reserved for the private use of OMCI and GEM ports 4000-4095 serve as channels for special use. Numeral type. Range: 128-3999.

Modes

Global config mode

Level

Operator level

Usage Guidelines

  • After an IP address is bound to a service port, the service forwarding module checks the source IP address of the packet sent from the user. If the source IP address (only the IPv6 prefix is matched for IPv6 packets and IPv6 addresses) of a user-side packet differs from all IP addresses that are bound to the receiving service port, the packet is discarded.
  • The IPv4 address bound to a service port must be a unicast IP address. An IPv4 address can be bound to a network segment with the length ranging from 17 bits to 32 bits or can be bound to an IPv4 address.
  • The IPv6 address bound to a service port must be a unicast IP address. An IPv6 address prefix with the length of 48 bits, 56 bits, 60 bits, or 64 bits, or an IPv6 address can be bound to a port. The IPv6 prefix bound to a port cannot have a length longer than 64 bytes.
  • The number of IP addresses that can be bound to a service port is limited. Each service port can be bound to a maximum of eight IPv4 addresses, four IPv4 address network segments, four IPv6 prefixes, or two IPv6 addresses. IPv4 and IPv6 share the hybrid service ports (resources) that support both IPv4 and IPv6 services. The resources occupied by each IPv6 prefix are twice that of an IPv4 address; the resources occupied by each IPv6 address are four times of that of an IPv4 address; the resources occupied by each IPv4 network segment are the same as that of an IPv4 address. Addresses can be bound only when the corresponding resources are available.
  • To ensure that DAD packets are transparently transmitted, bind a maximum of six static IPv4 addresses to a service port (one dynamic IPv6 address occupies resources of two static IPv4 addresses).
  • If a service port belongs to a bundle, the bound IP address takes effect to the entire bundle. All service ports in a bundle can be bound to a maximum of eight IPv4 addresses, four IPv4 network segments, four IPv6 prefixes, or two IPv6 addresses. For the bundle that contains hybrid service ports, the resources occupied by each IPv6 address are twice that of an IPv4 address. Addresses can be bound only when the corresponding resources are available.
  • Only H805GPBD supports IPv4 network segment binding. When bound to other boards, an IPv4 network segment is bound to the boards as multiple IPv4 addresses.

Example

To bind IP address 10.10.10.2 to the ADSL service port on physical port 0/3/0 with VPI/VCI of 0/35 and user-side VLAN of 100, do as follows:
huawei(config)#bind ip     
{ adsl<K>|atm<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:adsl         
{ frameid/slotid/portid<S><Length 5-18> }:0/3/0 
{ autosense<K>|vpi<K> }:vpi                                                     
{ vpi<U><0,255> }:0                                                            
{ vci<K> }:vci                                                                  
{ vci<U><32,65535> }:35                                                         
{ ip-addr<I><X.X.X.X>|single-service<K>|user-8021p<K>|user-encap<K>|user-vlan<K> }:user-vlan    
{ untagged<K>|user-vlanid<U><1,4095> }:100                                      
{ ip-addr<I><X.X.X.X> }:10.10.10.2                                              
{ <cr>|integer<U><0,32> }:                                                      
                                                                                
  Command:                                                                      
          bind ip adsl 0/3/0 vpi 0 vci 35 user-vlan 100 10.10.10.2      
To bind IP address 10.10.10.10 to the service port whose GEM port ID is 128 and is at port 0/3/0, do as follows:
huawei(config)#bind ip    
{ adsl<K>|atm<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:gpon         
{ frameid/slotid/portid<S><Length 5-18> }:0/3/0 
{ gemport<K> }:gemport                                                          
{ gemport<U><128,3999> }:128                 
{ ip-addr<I><X.X.X.X>|user-8021p<K>|user-vlan<K> }:10.10.10.10                   
{ <cr>|integer<U><0,32> }:                                                      
                                                                                
  Command:                                                                      
          bind ip gpon 0/3/0 gemport 128 10.10.10.10  
To bind IP addresses 10.10.20.0-10.10.20.7 to the ADSL service port on physical port 0/3/0 with VPI/VCI of 0/36, do as follows:
huawei(config)#bind ip     
{ adsl<K>|atm<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:adsl         
{ frameid/slotid/portid<S><Length 5-18> }:0/3/0
{ autosense<K>|vpi<K> }:vpi                                                     
{ vpi<U><0,255> }:0                                                            
{ vci<K> }:vci                                                                  
{ vci<U><32,65535> }:36                                                         
{ ip-addr<I><X.X.X.X>|single-service<K>|user-8021p<K>|user-encap<K>|user-vlan<K> }:single-service 
{ ip-addr<I><X.X.X.X> }:10.10.20.0                                             
{ <cr>|integer<U><0,32> }:29                                                    
                                                                                
  Command:                                                                      
          bind ip adsl 0/3/0 vpi 0 vci 36 single-service 10.10.20.0 29          
To unbind IP address 10.10.20.1 from the ADSL service port on physical port 0/3/0 with VPI/VCI of 0/36, do as follows:
huawei(config)#undo bind ip  
{ adsl<K>|atm<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:adsl         
{ frameid/slotid/portid<S><Length 5-18> }:0/3/0
{ all<K>|autosense<K>|vpi<K> }:vpi                                              
{ vpi<U><0,255> }:0                                                            
{ vci<K> }:vci                                                                  
{ vci<U><32,65535> }:36                                                         
{ all<K>|ip-addr<I><X.X.X.X>|single-service<K>|user-8021p<K>|user-encap<K>|user-vlan<K> }:single-service 
{ all<K>|ip-addr<I><X.X.X.X> }:10.10.20.1                                       
                                                                                
  Command:                                                                      
          undo bind ip adsl 0/3/0 vpi 0 vci 36 single-service 10.10.20.1 
To bind the IPv6 prefix 2001:DB8:0:CD30::/64 to service port 0, do as follows:
huawei(config)#bind ip     
{ adsl<K>|atm<K>|eth<K>|gpon<K>|service-port<K>|shdsl<K>|vdsl<K> }:service-port
{ index<U><0,32767> }:0
{ ip-addr<I><X.X.X.X>|x:x::x:x/m<IPV6><X:X::X:X/M> }:2001:DB8:0:CD30::/64

  Command:
          bind ip service-port 0 2001:DB8:0:CD30::/64

System Response

No comments:

Post a Comment