create vlan "v3" create vlan "v1" create vlan "v2" configure vlan v3 add ports 1 configure vlan v1 add ports 23 configure vlan v2 add ports 16 configure v1 ipaddress 2001:db8:1::1/48 configure v2 ipaddress 2001:db8:3::1/48 configure v3 ipaddress 2001:db8:5::1/48 enable ipforwarding ipv6 configure bgp AS-number 100 configure bgp routerid 1.1.1.1 create bgp neighbor 2001:db8:1::2 remote-AS-number 200 create bgp neighbor 2001:db8:3::2 remote-AS-number 300 create bgp neighbor 2001:db8:5::2 remote-AS-number 400 enable bgp neighbor all enable bgp neighbor all capability ipv6-unicast enable bgp enable bgp aggregation configure bgp add aggregate-address address-family ipv6-unicast 2001::/16 as-set summary-only
create vlan "v1" create vlan "net" configure vlan v1 add ports 5:33 configure vlan net add ports 5:20 configure v1 ipaddress 2001:db8:1::2/48 configure net ipaddress 2001:db8:2222::1/48 enable ipforwarding ipv6 configure bgp AS-number 200 configure bgp routerid 1.1.1.2 configure bgp add network address-family ipv6-unicast 2001:db8:2222::/48 create bgp neighbor 2001:db8:1::1 remote-AS-number 100 enable bgp neighbor 2001:db8:1::1 capability ipv6-unicast enable bgp neighbor 2001:db8:1::1 enable bgp
create vlan "v1" create vlan "net" configure vlan net add ports 2:15 configure vlan v1 add ports 2:16 configure v1 ipaddress 2001:db8:3::2/48 configure net ipaddress 2001:db8:2333::2/48 enable ipforwarding ipv6 configure bgp AS-number 300 configure bgp routerid 2.1.1.2 configure bgp add network address-family ipv6-unicast 2001:db8:2333::/48 create bgp neighbor 2001:db8:3::1 remote-AS-number 100 enable bgp neighbor 2001:db8:3::1 capability ipv6-unicast enable bgp neighbor 2001:db8:3::1 enable bgp
create vlan "v1" configure vlan v1 add ports 24 configure v1 ipaddress 2001:db8:5::2/48 enable ipforwarding ipv6 configure bgp AS-number 400 configure bgp routerid 5.1.1.2 create bgp neighbor 2001:db8:5::1 remote-AS-number 100 enable bgp neighbor 2001:db8:5::1 capability ipv6-unicast enable bgp neighbor 2001:db8:5::1 enable bgp
* switch # sh bgp routes address-family ipv6-unicast all Routes: Destination LPref Weight MED Peer Next-Hop AS-Path ------------------------------------------------------------------------- *>i 2001::/16 100 1 0 2001:db8:5::1 2001:db8:5::1 100 { 200 300 } Flags: (*) Preferred BGP route, (>) Active, (d) Suppressed, (h) History (s) Stale, (m) Multipath, (u) Unfeasible Origin: (?) Incomplete, (e) EGP, (i) IGP BGP Route Statistics Total Rxed Routes : 1 Feasible Routes : 1 Active Routes : 1 Rejected Routes : 0 Unfeasible Routes : 0 Route Statistics on Session Type Routes from Int Peer: 0 Routes from Ext Peer: 1