Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------R1 CONFIG-----------------------------
- service password-encryption
- hostname R1
- enable secret cisco
- enable password cisco1
- username sshuser password 0 sshpassword
- !
- ip domain-name cy350.com
- crypto key generate rsa
- 1024
- ip ssh version 2
- !
- interface GigabitEthernet0/0
- description TO R2
- ip address 10.52.3.153 255.255.255.252
- no shutdown
- !
- interface GigabitEthernet0/1
- description TO SW
- no shutdown
- !
- interface GigabitEthernet0/1.10
- description VLAN 10
- encapsulation dot1q 10
- ip address 10.52.3.62 255.255.255.192
- !
- interface GigabitEthernet0/1.20
- description VLAN 20
- encapsulation dot1q 20
- ip address 10.52.3.142 255.255.255.240
- !
- interface GigabitEthernet0/1.30
- description VLAN 30
- encapsulation dot1q 30
- ip address 10.52.3.150 255.255.255.248
- !
- interface GigabitEthernet 0/1.40
- description VLAN 40
- encapsulation dot1q 40
- ip address 10.52.3.94 255.255.255.224
- !
- interface Loopback0
- description this is my ospf router id
- ip address 10.52.3.254 255.255.255.255
- !
- router ospf 10
- network 10.52.3.0 0.0.0.63 area 0
- network 10.52.3.128 0.0.0.15 area 0
- network 10.52.3.64 0.0.0.31 area 0
- network 10.52.3.152 0.0.0.3 area 0
- network 10.52.3.254 0.0.0.0 area 0
- !
- banner login # This is the remote login for R1 #
- banner motd # Welcome to R1 #
- !
- line con 0
- password cisco
- line vty 0 15
- password cisco
- login local
- transport input ssh
- end
- --------------R2 CONFIG-----------------------------
- service password-encryption
- hostname R2
- enable secret cisco
- enable password cisco1
- username sshuser password 0 sshpassword
- !
- ip domain-name cy350.com
- crypto key generate rsa
- 1024
- ip ssh version 2
- !
- interface GigabitEthernet0/0
- description TO R1
- ip address 10.52.3.154 255.255.255.252
- no shutdown
- !
- interface GigabitEthernet0/1
- description TO IntUsers
- ip address 10.52.3.126 255.255.255.224
- no shutdown
- !
- interface Loopback0
- description this is my ospf router id
- ip address 10.52.3.253 255.255.255.255
- !
- router ospf 10
- network 10.52.3.96 0.0.0.31 area 0
- network 10.52.3.152 0.0.0.3 area 0
- network 10.52.3.253 0.0.0.0 area 0
- !
- banner login # This is the remote login for R2 #
- banner motd # Welcome to R2 #
- !
- line con 0
- password cisco
- line vty 0 15
- password cisco
- login local
- transport input ssh
- end
- --------------S1 CONFIG-----------------------------
- service password-encryption
- hostname S1
- enable secret cisco
- enable password cisco1
- username sshuser password 0 sshpassword
- !
- ip domain-name cy350.com
- crypto key generate rsa
- 1024
- ip ssh version 2
- !
- vlan 10
- name Sales
- vlan 20
- name Admin
- vlan 30
- name Management
- vlan 40
- name HR
- !
- interface vlan 30
- description vlan self
- ip address 10.52.3.145 255.255.255.248
- no shutdown
- !
- interface FastEthernet0/1
- description to Sales1
- switchport mode access
- switchport access vlan 10
- !
- interface FastEthernet0/2
- description to HR1
- switchport mode access
- switchport access vlan 40
- !
- interface FastEthernet0/3
- description to Mg1
- switchport mode access
- switchport access vlan 30
- !
- interface FastEthernet0/22
- description to S3
- switchport mode trunk
- switchport trunk allowed vlan 20,30,40
- !
- interface FastEthernet0/23
- description to S2
- switchport mode trunk
- switchport trunk allowed vlan 10,20,30
- !
- interface FastEthernet0/24
- description to R1
- switchport mode trunk
- switchport trunk allowed vlan 10,20,30,40
- !
- ip default-gateway 10.52.3.150
- !
- banner login # This is the remote login for S1 #
- banner motd # Welcome to S1 #
- !
- line con 0
- password cisco
- line vty 0 15
- password cisco
- login local
- transport input ssh
- end
- --------------S2 CONFIG-----------------------------
- service password-encryption
- hostname S2
- enable secret cisco
- enable password cisco1
- username sshuser password 0 sshpassword
- !
- ip domain-name cy350.com
- crypto key generate rsa
- 1024
- ip ssh version 2
- !
- vlan 10
- name Sales
- vlan 20
- name Admin
- vlan 30
- name Management
- vlan 40
- name HR
- !
- interface vlan 30
- description vlan self
- ip address 10.52.3.146 255.255.255.248
- no shutdown
- !
- interface FastEthernet0/1
- description to Sales2
- switchport mode access
- switchport access vlan 10
- !
- interface FastEthernet0/2
- description to Admin1
- switchport mode access
- switchport access vlan 20
- !
- interface FastEthernet0/3
- description to Mg2
- switchport mode access
- switchport access vlan 30
- !
- interface FastEthernet0/24
- description to S1
- switchport mode trunk
- switchport trunk allowed vlan 10,20,30
- !
- ip default-gateway 10.52.3.150
- !
- banner login # This is the remote login for S2 #
- banner motd # Welcome to S2 #
- !
- line con 0
- password cisco
- line vty 0 15
- password cisco
- login local
- transport input ssh
- end
- --------------S3 CONFIG-----------------------------
- service password-encryption
- hostname S3
- enable secret cisco
- enable password cisco1
- username sshuser password 0 sshpassword
- !
- ip domain-name cy350.com
- crypto key generate rsa
- 1024
- ip ssh version 2
- !
- vlan 10
- name Sales
- vlan 20
- name Admin
- vlan 30
- name Management
- vlan 40
- name HR
- !
- interface vlan 30
- description vlan self
- ip address 10.52.3.147 255.255.255.248
- no shutdown
- !
- interface FastEthernet0/1
- description to Admin2
- switchport mode access
- switchport access vlan 20
- !
- interface FastEthernet0/24
- description to S1
- switchport mode trunk
- switchport trunk allowed vlan 20,30,40
- !
- ip default-gateway 10.52.3.150
- !
- banner login # This is the remote login for S3 #
- banner motd # Welcome to S3 #
- !
- line con 0
- password cisco
- line vty 0 15
- password cisco
- login local
- transport input ssh
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement