Earlier than we revealed concerning the Web connection earlier than the change and the firewall, buddies stored asking concerning the Web connection configuration earlier than the change and the router. That is broadly utilized in precise initiatives. Principally, some large-scale community initiatives should be configured. About The subject of change and router configuration can be continuously mentioned.
On this concern, let’s be taught concerning the configuration of the connection between the change and the router.
Case: Layer 3 change and router interconnection configuration
1. Challenge scenario
An organization has a number of departments positioned on completely different community segments, and every division must entry the Web. Customers are actually required to entry the exterior community by way of layer-3 switches and routers, and layer-3 switches are required to function the consumer’s gateway. Right here we take Huawei switches for instance.
2.configuration concepts
Use the next concepts to configure:
1. Configure the change because the gateway for customers, and understand mutual entry between customers throughout community segments by way of the VLANIF interface.
2. Configure the change as a DHCP server to assign IP addresses to customers.
3. Configure the router to cross NAT conversion, in order that customers can entry the exterior community.
3. Change configuration
Configure the change
# Configure the interface connecting customers and the corresponding VLANIF interface.
# Configure the interface related to the router and the corresponding VLANIF interface.
# Configure DHCP server.
2. Configure the router
# Configure the IP deal with similar to the interface related to the change.
# Configure the IP deal with similar to the interface related to the general public community.
# Configure the default route and return route.
# Configure the NAT operate in order that intranet customers can entry the exterior community.
4.Verify the configuration outcomes
Set the IP deal with of PC1 to 192.168.1.2/24 and the gateway to 192.168.1.1; the IP deal with of PC2 to 192.168.2.2/24 and the gateway to 192.168.2.1.
Configure the IP deal with of the PC on the exterior community as 200.0.0.1/24 and the gateway as 200.0.0.2.
After the configuration is full, each PC1 and PC2 can ping the IP 200.0.0.1/24 of the exterior community, and each PC1 and PC2 can entry the Web.
Add right here: What’s vlanif? The distinction between it and vlan?
Many buddies have requested about this vlanif interface many instances, right here is the addition:
vlanif is used when making a layer-3 interface. It’s a digital interface and may be configured with an IP deal with; vlan is a purely layer-2 vlan ID identifier, which is equal to labeling knowledge.
After VLANs are divided, customers in the identical VLAN can talk with one another, however customers in several VLANs can not talk instantly. To be able to understand inter-VLAN communication, it may be realized by configuring a logical Layer 3 interface (VLANIF interface).
When a change wants to speak with units on the community layer, a VLAN-based VLANIF interface may be created on the change for communication. Subsequently, a number of vlanifs are configured on this article, and it’s simpler to know in case you can think about vlanif as a port of a router.
Wish to streamline your community setup? Discover our professional information on Router-switch integration for seamless web connectivity. Improve your system with top-notch merchandise from Router Change – your go-to vacation spot for dependable networking options. Click on now to raise your integration sport!
Verify Extra Router Change Merchandise:
Learn Extra:
Be part of Router Change Weblog as a Visitor Author and Columnist!
Igniting the Way forward for ICT: An Invitation to Router-switch.com’s InnovateTech Speaker Program