1) what is the difference between HWIC-4ESW and Etherswitch modules.
HWIC-4ESM cards are high speed wan interface cards. its basically a layer 2 switch with provisions for POE. ES modules are like switches inside a router slot, THE ES modules are insallted in the NM slots. We can acccess these ES modules and we can do ios upgrade also separately. This is not possible with the HWIC cards.
When we have HWIC cards installed in the router, the ports will be shown in the sh ip int brief as fastethernet ports in the router.
But when we have ES modules, the port which is internally connecting to ES module will be shown in the show ip int brief . like gig 4/0 or gig 2/0 depending on the slot its installed. We have to configure a ip address for the gig port and log into the ES module using the command
“service-module gig 4/0 session ”
Once we are in the service module either you can configure an ip address to the internal port connecting from the switch to the router, or we can configure the ip address for the vlan. by default the port connecting to the router is in the vlan 1 .
then for the internal communication we should have the ip route statement on both the ES and the router .
NAME: “NME-XD-48ES-2S-P: EtherSwitch SM 48 10/100T PoE + 2 SFP on Slot 4”, DESCR: “NME-XD-48ES-2S-P: EtherSwitch SM 48 10/100T PoE + 2 SFP”
router#sh ip int brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet4/0 10.2.2.1 YES manual up up
router#service-module gigabitEthernet 4/0 session
this will log you into the service module.
ESW-module#GigabitEthernet1/0/4 unassigned YES unset up up
gig 1/0/4 port is the interface connect to the router via the backplance
either we can give an ip address to this gig1/0/4 or put an ip address to the vlan 1 . by default this port is in vlan 1
ESW-module(config)#interface vlan 1
ESW-module(config-if)#ip address 10.2.2.2 255.255.255.0
ESW-module(config)#ip route 0.0.0.0 0.0.0.0 10.2.2.1
10.2.2.1 is the gig 4/0 ip address on the router through which the packets go out the router.
create anotther vlan for the internal communication for the hosts
ESW-module(config)#interface vlan 20
ESW-module(config-if)#ip address 192.168.10.2 255.255.255.0
also create a route in the router for reaching the vlan 20 in the ES module. this is reachable via 10.2.2.2 which is the vlan 1 ip address in the switch
router(config)#ip route 192.168.10.0 255.255.255.0 10.2.2.2