Sunday 14 June 2020

Configuring Port-Channel and VLAN in Juniper



Objective: To configure port-channel and associate it to vlan.
Servers will use Juniper-Router as their gateway and uplink to Internet. Server-switch have Layer 2 (access mode) connectivity to Juniper-Router. (see Fig.1)

 Fig.1



1. Configure the Vlan (interface vlan will be the server's gateway)
Juniper-Router#
configure
set vlans VLAN-8 description Server-Farm
set vlans VLAN-8 vlan-id 8
set vlans VLAN-8 l3-interface irb.8

set interfaces irb unit 8 description "Server Farm Vlan"
set interfaces irb unit 8 family inet address 192.168.8.1/24

2. Configure port-channel

set interfaces ae10 description "Port-channel to Server-Switch"
set interfaces ae10 aggregated-ether-options link-speed 1g
set interfaces ae10 aggregated-ether-options lacp active
set interfaces ae10 unit 0 family ethernet-switching interface-mode access
set interfaces ae10 unit 0 family ethernet-switching vlan members VLAN-8


3. Configure physical members
set interfaces ge-0/0/0 description "Connection to Server-Switch fa1/0"
set interfaces ge-0/0/0 gigether-options 802.3ad ae10

set interfaces ge-0/0/1 description "Connection to Server-Switch fa2/0"
set interfaces ge-0/0/1 gigether-options 802.3ad ae10

4. Commit all changes
commit

Verification and sample output:
Server1 = 192.168.8.20
Server2 = 192.16 8.8.21

ARP:
Juniper-Router> show arp interface ae10.0
MAC Address       Address         Name                      Interface               Flags
00:11:ab:cd:ef:00 192.168.8.20   192.168.8.20              ae10.0                  none
00:11:ab:cd:ef:01 192.168.8.21    192.168.8.21             ae10.0                  none
Total entries: 2

{master}

Ping:
user1@Juniper-Router-re0> ping 192.168.8.20 source 192.168.8.1  count 2
PING 192.168.8.20 (192.168.8.20 ): 56 data bytes
64 bytes from 192.168.8.20 : icmp_seq=0 ttl=64 time=1.162 ms
64 bytes from 192.168.8.20 : icmp_seq=1 ttl=64 time=1.098 ms

--- 192.168.8.20  ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.098/1.130/1.162/0.032 ms

{master}
    
Check Port-channel:

user1@Juniper-Router-re0> show lacp interfaces ae10
Aggregated interface: ae10
    LACP state:       Role   Exp   Def  Dist  Col  Syn  Aggr  Timeout  Activity
      ge-0/0/0     Actor    No    No   Yes  Yes  Yes   Yes     Slow    Active 
      ge-0/0/0     Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active
      ge-0/0/1    Actor    No    No   Yes  Yes  Yes   Yes     Slow    Active
      ge-0/0/1    Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active


Check Vlan:
user1@Juniper-Router-re0> show vlans VLAN-8
Routing instance        VLAN name             Tag          Interfaces
default-switch          VLAN-100              100


Verify the traffic:
monitor interface ae10.0
monitor interface ge-0/0/0
monitor interface ge-0/0/1

Here's the Cisco version for this -->  Configuring Port-Channel and VLAN in Cisco Nexus


No comments:

Post a Comment