uh hi everyone okay so let me show you another real world deployment scenario in this case we have two firewall it can be active active and it can be active passive means one primary and second secondary okay so in this case we have two for one and similarly we have two Nexus switches in real world you will find next switches where they will configure VPC or you will find VSS these two are mostly deployed in real world because VSS is not possible virtually so I will show you VPC between these two Nexus switches internal we have one switch I will show you another deployment where we have more than one internal switches more than one external switches and more than one ISP however in this case we have only one internet service provider uh two uh firewall and two core which is so let's start I'm gonna start from the internal switch okay so this is our internal switch nothing is configured so let me clear the screen and let's go to enable let's go to config and let me change the host name to n terminal internal okay and next thing we need to create to VLAN okay so we learn 10 in this case it can be many villain okay and we'll end 20 and exit from here so I create two wheel and one for PC one another for pc2n in this way you can create as many you want now let me put these interfaces and these VLAN okay so interface uh G 0 slash two switchboard mode access and switch Port access VLAN 10 okay so it will go to VLAN 10. similarly exit and three let me type 0 3 0 3 switchboard mode access and switch Port access VLAN 20 okay and no shutdown in case if it is down the interface so 2B line are created and then I put the interfaces in the proper VLAN after that I need to create a ether channel to these two switches okay this is the beauty of Nexus switches that you can create ether Channel basically this internal switch will see these two switches is a one okay however so I need to create ether channel here 0 0 and 0 slash one these two port so let me exit from here interface range G 0 slash zero n dash one okay switch Port uh switch Port run encapsulation dot 1q switch Port mode a trunk and channel protocol is lacp and channel mode so Channel group sorry Channel group I will give them 10 because here I put 10 okay so you can see I say 10 10 and mode is active it can be active and it can be passive whatever you like okay and then no shutdown because the other side is not created so that's why the port will be shut down as you can see that is suspended because lacp is currently not enabled on the remote Port it's okay because we haven't configured on the other side after this I need to exit from here and interface Port Channel support channel so I give them which number 10 so let me go to the sport Channel 10. and do the same thing switch Port rung encapsulation.
1q and switch Port mode a trunk okay and switchboard trunk a loud VLAN in our case we have only two villain so those will end 10 and 20. okay so I create because I create only 2 billion so I allowed those two VLAN through the trunk port okay and no shutdown as well it will give error because the other side is not configured okay and exit from here so this was the configuration from the internal switch we create two wheel and by the way let's verify everything so show VLAN brief so I created two VLAN 10 and 20 and I put these two Port Port 2 and vln 10 and Port 3 and villain 20. after that I create show interface trunk okay because it's not showing it's down and show summary so I create ether Channel 0 0 and 0 1 these two but it says suspended s s means is suspended because the other side is not created and the protocol is lacp and this is Port channel number okay we create this one and if you want to verify if your running interface so let's go to this interface and here is similar configuration you will find n01 as well okay and also you can verify both Channel 10 as well and here is so everything is okay from this internal switch so let me close this one and now let's move to the uh i n switch 1 and I am means core switch 1 and core switch 2 okay we need to configure a VPC here we need to make them logically one okay physical issuing two switches but logically it will be one so let's go to in switch one okay and type here Skip it's first time boot so you need to type skip here and let's go to internal switch one okay so we need to configure VPC so here I give them Management Port we will use this one and 10 1 1 IP and this side 10 10 uh 10 10 112 and these two will be a port Channel and we will put them as a uh peer link okay so let's go to our switch Yeah so let me log in admin and there is no password until this time let me configure this one so let's go to config T and host name i n switch one okay and after that I need to enable to feature okay so let me enable feature VPC and another feature which I will use is lacp because we configure lhcp on this side so two feature has been enabled now let's go to interface management which is management zero I'm talking about this interface okay and I will assign IP address so the IP address we decides ten one one this side okay n slash 24 sorry there is no space and no shutdown and exit from here so I configure this side the management okay now these two interfaces but before that I need to create a domain name so let me clear the screen and VPC domain and you can give them any number in this case let's give them a one okay and after that I need to give them priorities to put them this switch as a primary so roll priority suppose 20 I give them 20 and pair keep alive so our keep alive is this interface management we are using for this purpose so the destination IP which is not yet set but we will set this IP 10 1 1 2 so 10 1 1 2 and Source will be ten one one so let me copy this one one and we are I'm using management for this purpose you can create a separate uh wear it for this purpose but we are using the default management one in exit from here so VPC domain is done on this side okay so I assign the IP address to the management interface then I create a VPC domain okay let me clear this one next the interface is these two interfaces one and one two okay I need to make a port Channel so interface no need of range command and Nexus you just need to type so ethernet one slash one dash two I'm talking about these two interfaces one slash one and one slash two so this is the way to type in a Nexus switches and then switch Port mode trunk okay and switchboard trunk a loud VLAN 10 and 20.
in our case we have only two villain if you have more you need to type those and spinning three Network okay and channel group so let me go what channel Guru P decide Port channel one so we need to give them one one end mode is active okay and now shut down after no shutdown I need to go to the port Channel I'm configuring this side okay so let me okay no shutdown and exit from here let me clear the screen and let's go to interface a port channel one we just create Port channel one and similarly uh switch Port switchboard mode mode trunk and switch port a trunk a loud VLAN 10 and 20 and spanning three or type Network okay and this is not our normal Port Channel this is peer link so I need to type VPC is for peer link and no shutdown and exit from here okay so let me know shut down exit from here next thing I need to create two wheel in similar those we learn so VLAN 10 and villain 20 so I create two VLAN as well after that now let's start to configure Port Channel this one one slash three I've done with the management IP I create a port Channel between these two switches okay and now I need to create another Port channel here one slash three which is going to the internal switch okay so interface ethernet what was the ethernet one slash three okay and channel group let's see which group we want to assign them okay so it will be 10. so let me give them 10 and mode is active okay and after this no shutdown and exit from here interface Port Channel 10 which we create just created let's go to that Port Channel this one the one we give them this one okay and under that no shutdown switchboard switchboard mode trunk switchboard trunk allowed VLAN 10 and 20. and VPC VPC let's give them the same number it can be any other number okay so let me give them VPC 10.
and exit from here so I create up this one also I have one slash 4 which going to firewall one and one slash 5 which is going to firewall too but this port channel will be 200 and this port channel will be 210 so I need to create a two more Port Channel okay so I am now let's configure one slash four so let's go to interface ethernet one slash core this one okay this will be Port Channel 200. so Channel group 200 mode 3200 mode active no shutdown okay just wait for a while it taking time and then exit from here interface Port Channel 200 the same port Channel switchboard switch Port mode mode the trunk s okay switch port a trunk allowed vlane 10 and 20 and VPC is 200. we give them the same number so it will be easy to distinguish otherwise you can give them anything okay and no shutdown similarly I need to do the same thing for port number five as well I believe is this one one slash 5 is going to far wall two so sport channel will be 210 okay interface Port Channel sorry I need to go to interface first so interface uh E1 slash why and I need to channel group 210 let me verify if it is wrong then it will not work 210 yes to 10 and mode is active no shutdown okay and exit from here interface Port channel 210 the one which we just created and do the same thing it should be switchboard and it's switchboard mode trunk okay and switch Port run allowed VLAN 10 and 20 and VPC will be 210 okay and no shutdown and exit from here that's it this was the configuration so what we've done we create a port channel for peer link between these two switches we assign IP address to the management okay and after that by the way let's ping from this okay the other side is not configured and then I create a port Channel One slash three which going to internal and then I create a port Channel One slash four going to firewall one then I create a port channel 210 going to firewall 2.
okay similarly we need to create configure the same way and uh i n switch to so now the switch restarted okay now this time is working so I change and let me enable these two features okay after these two features I need to assign management IP if you remember we assign ip1011 to this side okay so let me copy and paste after management IP we need to create a domain the same number which we create on the other side however the destination will be ten one one switch one IP and sources this IP okay nvrf management so let me copy and paste okay next thing uh one and two interface these two interface will be the peer link so let's go to this one E1 and E2 Port channel one okay so this is Port Channel One here is and then and let me copy and paste by the way let me do it up to this point so let me copy and paste so I say interface one slash one and one slash two uh mode trunk VLAN 10 and 20 switchboard mode trunk and channel group one okay and now I need to go to Port Channel One and apply the same thing let me copy and paste and this is our peer link okay and after that I need to exit and create two VLAN so let me exit from here and let's create two VLAN after the VLAN I need to create another Port Channel One slash three this one which is going to internal similarly I done on the other side as well and let me copy okay and let's go to here and paste okay [Music] next thing I need to do one slash Five One slash Five is this one one slash Five is going to parallel one okay so let me go to one slash Five and copy and let's go to exit this one and paste so once let's pipe is done this one okay uh next thing is one slash four one slash four is this one which is Port channel 210 going to firewall two okay and we are done with this side as well so let me copy let me copy this one and let's go to here exit and paste that's it so this was the VPC configuration on these two switches okay let me exit from here and after that when these two are done okay let's verify by the way it's better to verify so first thing I need to Ping 10. 1. 2 which is the other side vrf management so I can ping the other side show VPC okay and there is a showy PC brief so here it's okay domain is ids1 and this one is okay peer link is alive successful and this is a primary device and the other side will be the secondary even though it's like logically one switch okay so let me here and here you can see as a secondary and everything is okay that's it so this was the configuration of these three switches by the way we need to verify the port Channel as well so let's go to this switch and the port channel is okay or not so here we need to type show uh sorry show ether Channel summary ether Channel summary so it should be okay yeah so s p p means it's okay bundle import channel so these two Port of this switch one going to switch one another going to switch to this is the beauty of Nexus switches even these are different switches but this internal switch look them as a one switch so this internal switch means it's connected two interfaces to like our one switch okay so that's why the port channel is okay on the other side you can verify from here as well uh show Port Channel summary here we call them Port Channel summary so here this one is four Channel One between two switches and this one is one slash three which is 10 going down the other two are suspended which is this one one slash four and one slash Five because we haven't configured on the firewall side so let's go to far one okay admin there is no password one two three new password one two three new password go to config uh sorry not config what is the port number this one port number six config system interface and edit port port number six okay and set IP 200 slash 24 and there is a space and set IP okay this shouldn't be okay I put the wrong IP this should be 192 168.
n114. 200 okay and set allow access HTTP https Bing SSH and enter okay so we are done with this switch uh sorry this firewall let's go to this firewall okay admin one two three one two three config system interface edit port number six and set IP 210 and set allow access HTTP http ping SSH and and we are done so let's access this firewall let me access the first Power wall this will be the problem before wall so let me try this IP here 200 and admin password is one two three now begin and let me give them a name for one one okay okay and now let's start go to network interfaces and as per our topologies so uh this port number six is management so let's go to port number six and give them a name MGMT okay and these two link will be the ha1 and ha2 uh two and three so let's go to two ha1 and port number three h82 okay ha1 ha2 next the port number one will be when so let's go to port number one and when and let me Define the rule when manual okay uncheck these things we don't need so let's get IP automatically from this Cloud okay from the internet and click ok and what else yeah port number four and five these will be The Ether Channel so port number four I will give them link one just to give them the name so it will be easy for us and 5 will be link to so this is the first thing it's better to give the name Ha one h a two link one link two management and then so we are done when is already configured execute IP automatically from this Cloud okay and I will make them manual I just allowed ping this one is done now coming to uh this one this port channel to configure these two so five and four and five so what I can do create an interface and here aggregate i n whatever the name you want to give them so I say aggregate in and change this to this one and the interfaces because I give them a name Link Link one and Link two put four and five these two yeah okay and after that just don't need to assign any IP no nothing and click ok so the port channel is configured okay under the port Channel because this will be the Gateway for VLAN 10 and we'll end 20 as well but it can be many VLAN in this case so we'll enter and we'll end 20 the Gateway will be firewall so inside will be we will give them the range 192 168 10 and 192 168 20. so the Gateway will be firewall one so let's create a two VLAN under this aggregate okay so click create new interface VLAN 10 okay copy and paste give them villain 10 type VLAN 10 interface choose aggregate we just create and type here 10.
okay and here the IP address so I say the last IP 192 168 for this one the Gateway will be for this PC this firewall okay so I say 192 168 10. 254 and just a lot ping okay and click ok so under this aggregate we create we'll enter similarly you need to create another relay VLAN 20 and choose Aggregate and here 20 and this is 20. 254 and Pinky loud and click OK similarly in Real World um you will be more VLAN so you need to repeat the same task in our case we I just take two as a example but in real world you will find more so you need to create similarly okay aggregate first there is no IP and then under these uh aggregate we create sub interfaces VLAN and we assign them the Gateway so this part is done okay next what we need to do okay we need to create h a however let's create a DNS so DNS let me specify so I configured the DNS as well then the static route so static route it will go to the Gateway this is our Gateway so let me create here which is when link and the Gateway will be 172 6 29 254 is basically this one okay and click ok so the Gateway is configured next we need to create a policies so create new VLAN 10.
policy so let's click on if VLAN 10 is going to outside when one source can be anything destination can be anything Services can be anything net is enabled and all session and click ok let me copy let me repeat the same Firewheel and 20 and real world you need to repeat the same foreign 20 policy just change this will in 20 and enable this one and we are done the two policies are allowed for VLAN 10 and 20 to go outside okay next now let's go to system and configure ha let's go to from standby to active passive and 120 whatever you want to give them h a group and change this one one two three four five six and monitor interface the way link I want to monitor this interface okay and heartbeat we have to H1 and H2 so Port one is more and the other one we know we discussed this in nse4 and we are done active passive and this should be you see the device with the highest priority more likely to become h a primary so this is 128 and click ok now let's open the other one the second firewall this one here admin123 and begin this is for wall two okay and here it's better to give them the name to the interfaces quickly interface is Port 1 we know this will be the when link and uncheck these things Okay click OK let's go back again when and changes to when and click OK similarly port number two port number two and three is hf1 and ha2 okay ha1 and port number three ha2 no need but just to you know four and five will be the this one four and five will be the ether channel so let me give them link one and five page link two done and finally we have port number six MGMT name or better okay after that you don't need to do anything on firewall do just go straight away to system let's go to ha and from standby to active passive let's give them less and H a group and change the password one two three four five six and monitor interfaces when and heartbeat is ha1 and ha2 and give them this one more priority and click OK and just wait for a while so that these two switch become h a okay after a while so this one is synchronized this one is the primary one okay 200 which is firewall one and the other one is secondary okay but it's not sync yet so we need to wait for a while and let's go back what else we need to do okay so I configure this one till their time has become sync so we need to go to pc1 to configure the IP address so right click here network manager okay properties and let me type the IP 10. 1 and Gateway will be 254 we just configure [Music] foreign click OK and connect similarly let's go to PC2 right click let's go to network manager properties static IP 20. 2 and Gateway 254 and this is DNS click OK and connect let's go back to this one okay and right click terminal F config yes and then a route so Gateway is okay and now let me ping my Gateway so yes I can ping my Gateway so there is no issue from here the traffic is reaching up to this sub interface which we configure up to this point there is no issue this one 10.
254 by the way let's go to Hal let's see is sync or not yet yeah it's okay okay yeah not yet it will take some more time okay and we need to wait for a while however my traffic is reaching up to this point so there is no issue so we need to wait for our okay this device will not be accessible anymore okay so it's okay and we need to wait okay similarly let's go to PC2 as well and let's go to terminal and if config so this is 20. 2 and Route is 20. 254 and let's ping okay so I am reachable to the Gateway it's here this sub interface so up to this point there is no issue okay next my traffic has to go out but we need to wear that these devices are sync or not yet okay still there is an issue however it will take some more time sometime you need to restart the device for one two however the better way is just wait for a while it will take some time and then it will show you that is synchronized so let's see now anyway till date time we can test our traffic ping 8.
8. 8 yes so I can go out now and let me clear this one and ping yahoo. com so yes my traffic is going and we can verify from here let's go to 40 view source so 10.
1 and 20.