Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

VLAN DHCP ACL RIP configuration

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Experimental requirements:

Vlan10 Gateway sw1 vlan20 Gateway R1 vlan30/40 Gateway sw2

Both vlan50/60 gateways R2 vlan40 and vlan50 can access vlan60

But the two vlan are isolated from each other at layer 2. Sw3 is the DHCP server.

Realize vlan interworking of the whole network

Ideas and steps:

Experimental VLAN DHCP ACL RIP configuration

Ideas and configuration:

1. Configure SW1: create vlan10 and vlan20

Add port 0 to vlan10 2 and 3 to vlan20

Vlanif10 ip:192.168.10.254 255.255.255.0

Vlanif20 ip:192.168.20.2 255.255.255.0

two。 Configure SW2: create vlan30 40 50 60

Add port 5 to vlan30 and port 4 to vlan40

Add ports 1 and 2 to vlan50 1 and 6 to vlan60

Vlanif30ip:192.168.30.254 255.255.255.0

Vlanif40ip:192.168.40.254 255.255.255.0

Vlanif530ip:192.168.50.2 255.255.255.0

Vlanif60ip:192.168.60.24 255.255.255.0

3. Configure R1: configure port 0 ip:192.168.20.254 255.255.255.0

Configure 1 port ip:192.168.12.1 255.255.255.0

Configure 2-port ip:192.168.100.254 255.255.255.0

4. Configure R2: configure port 0 ip:192.168.50.254 255.255.255.0

Configure 1 port ip:192.168.12.2 255.255.255.0

Configure 2-port ip:192.168.60.254 255.255.255.0

5. Configure SW3 to create vlan100

Add port 1 to vlan100

Vlanif100ip:192.168.100.1 255.255.255.0

6. Configure SW1 to create RIP

Rip

Version 2

Network 192.168.10.0

Network 192.168.20.0

7. Configure R1 to create RIP

Rip

Version 2

Network 192.168.12.0

Network 192.168.20.0

Network 192.168.100.0

8. Configure SW2 to create RIP

Rip

Version 2

Network 192.168.30.0

Network 192.168.40.0

Network 192.168.50.0

Network 192.168.60.0

9. Configure R2 to create RIP

Rip

Version 2

Network 192.168.12.0

Network 192.168.50.0

Network 192.168.60.0

10. Configure sw3 to create RIP

Rip

Version 2

Network 192.168.100.0

If the ip of the PC is manually configured, the whole network can be interconnected.

11. Configure the address pool for SW3: dhcp enable in system mode

Ip pool vlan10

Network 192.168.10.0 mask 255.255.255.0

Gateway-list 192.168.10.254

Dns-list 1.1.1.1

Lease day 3

Ip pool vlan20

Network 192.168.20.0 mask 255.255.255.0

Gateway-list 192.168.20.254

Dns-list 1.1.1.1

Lease day 3

Ip pool vlan30

Network 192.168.30.0 mask 255.255.255.0

Gateway-list 192.168.30.254

Dns-list 1.1.1.1

Lease day 3

Ip pool vlan40

Network 192.168.40.0 mask 255.255.255.0

Gateway-list 192.168.40.254

Dns-list 1.1.1.1

Lease day 3

Ip pool vlan50

Network 192.168.50.0 mask 255.255.255.0

Gateway-list 192.168.50.254

Dns-list 1.1.1.1

Lease day 3

Enter the vlan100 port and select global mode

Interface g0/0/0

Dhcp select global

twelve。 Configure SW1: enable relay dhcp enable

Interface vlanif 10

Dhcp select relay

Dhcp relay sever-ip 192.168.100.1

13. Configure R1: turn on Relay dhcp enable

Interface g0/0/0

Dhcp select relay

Dhcp relay sever-ip 192.168.100.1

14. Configure SW2: enable relay dhcp enable

Interface vlanif 30

Dhcp select relay

Dhcp relay sever-ip 192.168.100.1

Interface vlanif 40

Dhcp select relay

Dhcp relay sever-ip 192.168.100.1

15. Configure R2: turn on Relay dhcp enable

Interface g0/0/0

Dhcp select relay

Dhcp relay sever-ip 192.168.100.1

Interface g0/0/2

Dhcp select relay

Dhcp relay sever-ip 192.168.100.1

16. At this point, select dhcp on a PC to get: query ip through ipconfig

Pc1:

Pc2:

Pc3:

Pc4:

Pc5:

17. Configure SW2 configure ACL to isolate pc4 from pc2

Acl name pc4-2 advance

Rule 5 deny ip sourse 192.168.40.253 0.0.0.0 destiation 192.168.50.253 0.0.0.0

Quit

Interface e0/0/4

Traffic-fliter inbound acl name pc4-2

18. Manually configure ip192.168.60.1 255.255.255.0 for sever1

Gateway 192.168.60.254

# # all PCs in the network can communicate with each other except pc4 and pc2.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report