Chciałem stworzyć na routerze J2350 VLAN'y które które by współgrały ze switchem Cisco 2950 a dokładnie tzw router na patyku
Konfig switcha dla vlanów 1 10 20 30 i glownego 99 wygląda mniej więcej tak:
Kod: Zaznacz cały
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
i poszczegolne porty wedlug tego wzoru dla vlanow 10 20 30
!
interface FastEthernet0/6
switchport access vlan 20
switchport mode access
!
!
Kod: Zaznacz cały
interface FastEthernet0/1.1
encapsulation dot1Q 1
ip address 172.17.1.1 255.255.255.0
!
interface FastEthernet0/1.10
encapsulation dot1Q 10
ip address 172.17.10.1 255.255.255.0
!
interface FastEthernet0/1.20
encapsulation dot1Q 20
ip address 172.17.20.1 255.255.255.0
!
interface FastEthernet0/1.30
encapsulation dot1Q 30
ip address 172.17.30.1 255.255.255.0
!
interface FastEthernet0/1.99
encapsulation dot1Q 99 native
ip address 172.17.99.1 255.255.255.0
Kod: Zaznacz cały
[edit interfaces ge-0/0/1]
unit 1 {
vlan-id 1;
family inet {
address 172.17.1.1/24;
}
unit 10 {
vlan-id 10;
family inet {
address 172.17.10.1/24;
}
}
unit 20 {
vlan-id 20;
family inet {
address 172.17.20.1/24;
}
unit 30 {
vlan-id 30;
family inet {
address 172.17.30.1/24;
}
unit 99 {
vlan-id 99;
family inet {
address 172.17.99.1/24;
}
}