Packet Filter

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

IMPLEMENTATION AND TESTING

4.1 Coding:

VTP Server Configuration on switch 1


Switch> en
Switch# config t
Switch (config)#hostname Server
Server (config)#vtp mode server
Server (config)#vtp domain disha.com
Server (config)#int range f0/1-4
Server (config-if-range)#switchport mode trunk

Server (config-if-range)#exit
Server (config)#exit
Server # vlan database
Server(vlan)#vlan 2 name admin
Server (vlan)#vlan 3 name AC
Server (vlan)#vlan 4 name HR

VTP Client configuration on switch 2


Switch> en
Switch#config t
Switch (config)#hostname client1
Client1 (config)#vtp mode client
Client1 (config)#int range f0/1 -10
Client1 (config-if-range)#switchport access vlan 2
Client1 (config-if-range)#exit
Client1 (config)#

VTP Client configuration on switch 3


Switch> en
Switch# config t
Switch(config)# hostname Client2
Client2 (config)#vtp mode client
Client2 (config)#int range f0/1 -10
Client2 (config-if-range)#switchport access vlan 3
Client2 (config-if-range)#exit
Client2 (config)#

VTP Client configuration on switch 4


Switch> en
Switch# config t
Switch(config)# hostname Client3
Client3 (config)#vtp mode client
Client3 (config)#int range f0/1 -10
Client3 (config-if-range)#switchport access vlan 4
Client3 (config-if-range)#exit
Client3 (config)#

Configuration for Intervlan communication on Router1


Router >en
Router # conf t
Router (config)#hostname Router1
Router1(config)#int s0/0
Router1(config-if)#ip add 10.0.0.1 255.255.0.0
Router1(config-if)#clock rate 64000
Router1(config-if)#no shut
Router1(config-if)#exit
Router1(config)# int f0/0
Router1(config-if)#no shut
Router1(config-if)#exit
Router1(config)#int f0/0.1

Router1(config-subif)#encapsulation dot1q 2
Router1(config-subif)#ip add 10.1.0.1 255.255.0.0
Router1(config-subif)#no shut
Router1(config-subif)#exit
Router1(config)#int f0/0.2
Router1(config-subif)#encapsulation dot1q 3
Router1(config-subif)#ip add 10.2.0.1 255.255.0.0
Router1(config-subif)#no shut
Router1(config-subif)#exit

EIGRP configuration for communication between Router 1 and


Router2
On Router1
Router >en
Router # conf t
Router (config)#hostname Router1
Router1(config)#enable pass cisco
Router1(config)#line vty 0
Router1(config-line)#login
Router1(config-line)#password cisco
Router1(config-line)#exit
Router1(config)#int s0/0
Router1(config-if)#ip add 10.0.0.1 255.255.0.0
Router1(config-if)#clock rate 64000
Router1(config-if)#no shut
Router1(config-if)#exit

Router1(config)# int f0/0


Router1(config-if)#no shut
Router1(config-if)#exit
Router1(config)#int f0/0.1
Router1(config-subif)#encapsulation dot1q 2
Router1(config-subif)#ip add 10.1.0.1 255.255.0.0
Router1(config-subif)#no shut
Router1(config-subif)#exit
Router1(config)#int f0/0.2
Router1(config-subif)#encapsulation dot1q 3
Router1(config-subif)#ip add 10.2.0.1 255.255.0.0
Router1(config-subif)#no shut
Router1(config-subif)#exit
Router1(config)#router eigrp 100
Router1(config-router)#net 10.0.0.0
Router1(config-router)#net 10.1.0.0
Router1(config-router)#net 10.2.0.0
Router1(config-router)#no auto-summry
Router1(config-router)#passive-interface f0/0
Router1(config-router)#exit
Router1(config)#
On Router2
Router >en
Router # conf t
Router (config)#hostname Router2

Router2(config)#enable pass cisco


Router2(config)#line vty 0
Router2(config-line)#login
Router2(config-line)#password cisco
Router2(config-line)#exit
Router2(config)#int s0/0
Router2(config-if)#ip add 10.0.0.2 255.255.0.0
Router2(config-if)#clock rate 64000
Router2(config-if)#no shut
Router2(config-if)#exit
Router2(config)# int f0/0
Router2(config-if)#ip add 10.4.0.1 255.255.0.0
Router2(config-if)#no shut
Router2(config-if)#exit
Router2(config)#router eigrp 100

Router2(config-router)#net 10.0.0.0
Router2(config-router)#net 10.4.0.0
Router2(config-router)#no auto-summary
Router2(config-router)#passive-interface f0/0
Router2(config-router)#exit
Router2(config)#

ACL configuration for specific communication on router1


Router1(config)#access-list 110 permit tcp host 10.1.0.2 host 10.4.0.1 eq 23
Router1(config)#access-list 110 deny tcp any any eq 23
Router1(config)#access-list 110 permit ip any any

Implementing EIGRP:

Router0:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0, changed state to down


Router(config-if)#clock rate 64000
Router(config-if)#int f0/0
Router(config-if)#ip address 12.0.0.1 255.0.0.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router#
Router#
Router# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 100
Router(config-router)#net 10.0.0.0
Router(config-router)#net 12.0.0.0
Router(config-router)#no auto summary
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.0.0.2 (Serial0/0) is up: new adjacency

Goodbye received
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.0.0.2 (Serial0/0) is up: new adjacency

Router1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0, changed state to up

Router(config-if)#int f0/0
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router(config-if)#ip address 13.0.0.1 255.0.0.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#int s0/1
Router(config-if)#ip address 11.0.0.2 255.0.0.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
Router(config-if)#clock rate 64000
Router(config-if)#^Z

Router#
%SYS-5-CONFIG_I: Configured from console by console

%LINK-5-CHANGED: Interface Serial0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up


Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 100
Router(config-router)#net 10.0.0.0
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.0.0.1 (Serial0/0) is up: new adjacency
net 11.0.0.0
Router(config-router)#net 13.0.0.0
Router(config-router)#no auto summary
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.0.0.1 (Serial0/0) is up: new adjacency
^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 11.0.0.3 (Serial0/1) is up: new adjacency
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 11.0.0.3 (Serial0/1) is down: Interface
Goodbye received
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 11.0.0.3 (Serial0/1) is up: new adjacency

Router2:

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0
Router(config-if)#ip address 11.0.0.3 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0, changed state to up

Router(config-if)#int f0/0
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

Router(config-if)#ip address 14.0.0.1 255.0.0.0


Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 100

Router(config-router)#net 11.0.0.0
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 11.0.0.2 (Serial0/0) is up: new adjacency
net 14.0.0.0
Router(config-router)#no auto summary
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 11.0.0.2 (Serial0/0) is up: new adjacency
^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Implementing RIP:

Router0:

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0, changed state to down


Router(config-if)#clock rate 64000
Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip address 11.0.0.1 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#^Z

Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#net 10.0.0.0
Router(config-router)#net 11.0.0.0
Router(config-router)#no auto summary
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0
Router(config-if)#ip address 10.0.0.6 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
int
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
f0/0

Router(config-if)#ip address 12.0.0.1 255.0.0.0


Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#net 10.0.0.0
Router(config-router)#net 12.0.0.0
Router(config-router)#no auto summary
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

You might also like