cellphonepopla.blogg.se

Advantages of router on a stick
Advantages of router on a stick







When all subinterfaces have been created, enable the physical interface using the no shutdown interface configuration command. Each router subinterface must be assigned an IP address on a unique subnet for routing to occur. Repeat the process for each VLAN to be routed. This address typically serves as the default gateway for the identified VLAN. Ip address ip-address subnet-mask : This command configures the IPv4 address of the subinterface. The native keyword option is only appended to set the native VLAN to something other than VLAN 1. Although not required, it is customary to match the subinterface number with the VLAN number.Įach subinterface is then configured with the following two commands:Įncapsulation dot1q vlan_id : This command configures the subinterface to respond to 802.1Q encapsulated traffic from the specified vlan-id. The subinterface syntax is the physical interface followed by a period and a subinterface number. The router-on-a-stick method requires you to create a subinterface for each VLAN to be routed.Ī subinterface is created using the interface interface_id.subinterface_id global configuration mode command. *Mar 1 00:23:52.137: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceįastEthernet0/1, changed state to up R1 Subinterface Configuration (4.2.4) Example 4-5 S2 Configuration S2(config)# vlan 10 The configuration for S2 is similar to S1, as shown in Example 4-5. S2 VLAN and Trunking Configuration (4.2.3) *Mar 1 00:23:44.511: %LINEPROTO-5-UPDOWN: Line protocol on Interface *Mar 1 00:23:43.093: %LINEPROTO-5-UPDOWN: Line protocol on Interface Example 4-4 Configure Trunking Ports S1(config)# interface fa0/1 Finally, ports Fa0/1 connecting to S2 and Fa05 connecting to R1 are configured as trunk ports, as shown in Example 4-4. Example 4-3 Configure Access Ports S1(config)# interface fa0/6 Assume PC1 has been configured with the correct IP address and default gateway. Next, port Fa0/6 connecting to PC1 is configured as an access port in VLAN 10, as shown in Example 4-3. Example 4-2 Create the Management Interface S1(config)# interface vlan 99 Next, the management interface is created on VLAN 99 along with the default gateway of R1, as shown in Example 4-2. Example 4-1 Create and Name VLANs S1(config)# vlan 10 VLANs are created only after you exit out of VLAN subconfiguration mode. First, the VLANs are created and named, as shown in Example 4-1.









Advantages of router on a stick