cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
451
Views
0
Helpful
0
Replies

Subinterfaces Issues Cisco 2821

omermushtaq
Level 1
Level 1

Hi Guys

I have following equipments.

a) Cisco 3560 Switch

b) Cisco 2821 Router

There are two vlans configured on my switch named Vlan 2 and Vlan 3. I have configured port Gi0/8 on switch as trunk port. On router I have configured two subinterfaces which are Gi0/0.1 and Gi0/0.2 for Vlan 2 and Vlan 3 respectively. And routers Gi0/0 is connected to switch port Gi0/8.

a) Network 172.16.0.0/255.255.255.252.0 (Vlan 3) is configured on On Gi0/0.2

b) Network 192.168.40.0/255.255.255.255.0 (Vlan 2) is configured on On Gi0/0.1

Whenever I shutdown the subinterface Gi0/0.1 through EEM, all the traffic of network 172.16.0.0 also goes down. Users of network 172.16.0.0 can't even ping other ports of router and complete traffic is blocked. Above that if I change anything on this subinterface everything of other network is blocked. Router configuration is given below

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service dhcp
!
hostname Router
!
boot-start-marker
boot-end-marker
!
ip cef
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.1
 encapsulation dot1Q 2
 ip address 192.168.20.4 255.255.255.0
 ip nat inside
 ip virtual-reassembly
!
interface GigabitEthernet0/0.2
 encapsulation dot1Q 3
 ip address 172.16.0.10 255.255.252.0
 ip nat inside
 ip virtual-reassembly
!
interface GigabitEthernet0/1
 ip address 192.168.0.16 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface GigabitEthernet0/1.1
!
interface Serial0/0/0
 no ip address
 shutdown
!
ip route 0.0.0.0 0.0.0.0 192.168.0.1
!
!
no ip http server
no ip http secure-server
ip nat pool VLAN 192.168.0.5 192.168.0.5 netmask 255.255.255.0
ip nat inside source list 1 pool VLAN overload
ip nat inside source list 2 pool VLAN overload
!
access-list 1 permit 192.168.20.0 0.0.0.255
access-list 2 permit 172.16.0.0 0.0.255.255
!
!
control-plane
scheduler allocate 20000 1000
!
event manager session cli username Router
event manager applet shutdown-port
 event timer cron cron-entry "30 7 * * *"
 action 010 cli command "enable"
 action 020 cli command "config t"
 action 030 cli command "interface Gi0/0.1"
 action 040 cli command "shutdown"
 action 050 cli command "end"
 action 060 syslog msg "Interface Gi0/0.1 down now"
event manager applet noshut-port
 event timer cron cron-entry "0 15 * * *"
 action 010 cli command "enable"
 action 020 cli command "config t"
 action 030 cli command "interface Gi0/0.1"
 action 040 cli command "no shutdown"
 action 050 cli command "end"
 action 060 syslog msg "Interface Gi0/0.1 is up now"
!

0 Replies 0
Review Cisco Networking for a $25 gift card