取消
显示结果 
搜索替代 
您的意思是: 
cancel
207
查看次数
1
有帮助
5
回复

I'm a newbie and I am trying to figure out how to configure my default

evanmckay927
Level 1
Level 1

 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 

Screenshot 2024-08-10 202732.png

1 个已接受解答

已接受的解答

bbb bbb
Level 1
Level 1

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,

在原帖中查看解决方案

5 条回复5

@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

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

thank you for you're help and the info  

bbb bbb
Level 1
Level 1

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

 

You are welcome. : ]

Best regards,

Review Cisco Networking for a $25 gift card