Typical Configuration Example
Overview
Take the following topology as an example to introduce how to implement communication between PC1 and PC2.
Figure 1.    Topology of Access Network
Â
The data plan is shown as below.
Device | Interface | VLAN and IP Address |
Switch A | te-1/1/1 | VLAN: 10 IP address: 10.10.10.1/24 |
te-1/1/2 | VLAN: 4 IP address: 10.10.4.1/24 | |
te-1/1/3 | VLAN: 5 IP address: 10.10.5.2/24 | |
Switch B | te-1/1/1 | VLAN: 3 IP address: 10.10.3.1/24 |
te-1/1/2 | VLAN: 4 IP address: 10.10.4.2/24 | |
Switch C | te-1/1/1 | VLAN: 2 IP address: 10.10.2.1/24 |
te-1/1/3 | VLAN: 5 IP address: 10.10.5.1/24 | |
PC1 | 10.10.3.8/24 | |
PC2 | 10.10.2.8/24 |
Procedure
Before configuring the following steps, make sure you have logged in the specified switch through Console port or SSH. For detailed information, see Initial Setup and Configuring the SSH Access.
Step1Â Â Â Â In the configuration mode, configure the host name of switch respectively as SwitchA, SwitchB and SwitchC.
admin@PICOS> configure
admin@PICOS# set system hostname SwitchA
admin@PICOS# commit
admin@SwitchA#
Run the same command on other switches to change the hostname as SwitchB and SwitchC.
Step2Â Â Â Â Configure the interface and VLAN.
Switch A
Interface te-1-1-1:
admin@SwitchA# set vlans vlan-id 10
admin@SwitchA# set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 10
admin@SwitchA# set vlans vlan-id 10 l3-interface vlan10
admin@SwitchA# set l3-interface vlan-interface vlan10 address 10.10.10.1 prefix-length 24
admin@SwitchA# commit
Interface te-1-1-2:
admin@SwitchA# set vlans vlan-id 4
admin@SwitchA# set interface gigabit-ethernet te-1/1/2 family ethernet- admin@SwitchA# switching native-vlan-id 4
admin@SwitchA# set vlans vlan-id 4 l3-interface vlan4
admin@SwitchA# set l3-interface vlan-interface vlan4 address 10.10.4.1 prefix-length 24
admin@SwitchA# commit
Interface te-1-1-3:
Switch B
Interface te-1-1-1:
Interface te-1-1-2:
Switch C
Interface te-1-1-1:
Interface te-1-1-3:
Step3Â Â Â Â Configure the IP address and default gateway of PC1 and PC2.
PC1:
PC2:
Step4Â Â Â Â Configure the routing. You can configure the static routing or OSPF routing to connect network.
Connecting network through the static routing
Switch A:
Switch B:
Switch C:
Connecting network through the OSPF routing
Switch A:
Switch B:
Switch C:
Verifying the Configuration
View the routing table of each switch.
Static Routing:
Figure2.    Static Routing Entries of SwitchAFigure3.    Static Routing Entries of SwitchB
Figure4.    Static Routing Entries of SwitchC
OSPF Routing:
Figure5.    OSPF Routing Entries of SwitchAFigure6.    OSPF Routing Entries of SwitchB
Figure7.    OSPF Routing Entries of SwitchC
Run Ping command to check the connectivity between PC1 and PC2.
PC1 ping PC2:
Figure8.    Result of PC1 Ping PC2PC2 ping PC1:
Figure9.    Result of PC2 Ping PC1
Copyright © 2024 Pica8 Inc. All Rights Reserved.