Here's the chart. it is a 201.10.15.0 /29 addressing scheme. below the pic is the code that i tried. i am just have troubled f
已解决! 转到解答。
Dear @evanmckay927
a. DOTq configuration should correspond to VLAN number that is used on the switch.
b. Allow ALL vlan on the trunk on the switch by removing the "allowed vlan 10,20"
c. Configure "ip default-gateway <ip address of router>" so the switch itself can reach router as its gateway (usually used for management purpose)
d. Configure corresponding VLAN on the switch port where the PC (or end device) is connected.
=== @router
interface GigabitEthernet0/0.10
encapsulation dot1Q 10 <--------a.
ip address 201.10.15.9 255.255.255.248
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 201.10.15.17 255.255.255.248
=====in switch1
interface 0/1
no switchport trunk allowed vlan 10,20 <----b
switchport mode trunk
interface FastEthernet0/3
switchport access vlan 10 <---- d
switchport mode access
exit
interface f0/10
no switchport trunk allowed vlan 10,20
switchport mode trunk
exit
interface vlan 1
no shutdown
exit
ip default-gateway 201.10.15.1 <----c
=== switch2
interface f0/6
switchport mode access
switchport access vlan 20
exit
interface f0/10
switchport mode trunk
interface vlan 1
no shut
ip address 201.10.15.3 255.255.255.248
exit
ip default-gateway 201.10.15.1
Follow also as what is suggested by Kasun in configuring vlan interface (or assigning multiple IP addresses with its corresponding vlan interface) on switch1 and switch2.
Happy to Help : ]
Best regards,
@evanmckay927 hello,
1. you configured router interfaces as listed.
2. for switches go to configuration mode and use 'int vlan 10' and configure the relevant IP for VLAN 10 as per your list. do same for vlan 1 and 20 for both switches.
3. configure interface trunk mode between interfaces connecting routers and switches
4. configure relevant VLAN in switch port where PCs are connected as per your list. port need to be access mode.
5. configure correct IPs in the PCs
thank you for you're help and the info
Dear @evanmckay927
a. DOTq configuration should correspond to VLAN number that is used on the switch.
b. Allow ALL vlan on the trunk on the switch by removing the "allowed vlan 10,20"
c. Configure "ip default-gateway <ip address of router>" so the switch itself can reach router as its gateway (usually used for management purpose)
d. Configure corresponding VLAN on the switch port where the PC (or end device) is connected.
=== @router
interface GigabitEthernet0/0.10
encapsulation dot1Q 10 <--------a.
ip address 201.10.15.9 255.255.255.248
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 201.10.15.17 255.255.255.248
=====in switch1
interface 0/1
no switchport trunk allowed vlan 10,20 <----b
switchport mode trunk
interface FastEthernet0/3
switchport access vlan 10 <---- d
switchport mode access
exit
interface f0/10
no switchport trunk allowed vlan 10,20
switchport mode trunk
exit
interface vlan 1
no shutdown
exit
ip default-gateway 201.10.15.1 <----c
=== switch2
interface f0/6
switchport mode access
switchport access vlan 20
exit
interface f0/10
switchport mode trunk
interface vlan 1
no shut
ip address 201.10.15.3 255.255.255.248
exit
ip default-gateway 201.10.15.1
Follow also as what is suggested by Kasun in configuring vlan interface (or assigning multiple IP addresses with its corresponding vlan interface) on switch1 and switch2.
Happy to Help : ]
Best regards,
thank you for the help