meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network:switches:cisco:cli:vlan [2024/07/18 12:57] – niziak | network:switches:cisco:cli:vlan [2024/08/19 12:42] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== vlan ====== | ====== vlan ====== | ||
| - | |||
| ===== VLAN ===== | ===== VLAN ===== | ||
| Line 34: | Line 33: | ||
| no switchport access vlan | no switchport access vlan | ||
| end | end | ||
| + | </ | ||
| + | |||
| + | ==== put one port in VLAN ==== | ||
| + | |||
| + | < | ||
| + | conf term | ||
| + | interface Gi1/48 | ||
| + | switchport access vlan 28 | ||
| + | end | ||
| + | wr | ||
| </ | </ | ||
| Line 62: | Line 71: | ||
| < | < | ||
| + | sh int vlan 28 | ||
| + | |||
| Vlan28 is up, line protocol is down | Vlan28 is up, line protocol is down | ||
| </ | </ | ||
| Line 76: | Line 87: | ||
| If you don't have any access ports in the VLAN, and you are not trunking the VLAN across at least two trunk ports then the switch has no possible place it could forward the tagged packets to. Consequently it can shut it down. | If you don't have any access ports in the VLAN, and you are not trunking the VLAN across at least two trunk ports then the switch has no possible place it could forward the tagged packets to. Consequently it can shut it down. | ||
| + | |||
| + | Solution - add VLAN 28 to one of " | ||
| + | < | ||
| + | conf term | ||
| + | interface Gi0/48 | ||
| + | switchport access vlan 28 | ||
| + | end | ||
| + | wr | ||
| + | </ | ||
| + | |||
| + | Also solution switch all other ports to trunks | ||
| + | |||
| + | < | ||
| + | C3560G-2(config)# | ||
| + | C3560G-2(config)# | ||
| + | C3560G-2(config)# | ||
| + | C3560G-2(config-if-range)# | ||
| + | C3560G-2(config-if-range)# | ||
| + | C3560G-2(config-if-range)# | ||
| + | </ | ||
| + | |||
| + | ??? So 48 was already in trunk mode, so it looks that switch needs 2 trunk ports UP to put vlan28 up ? | ||
| + | |||