This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
cisco:begining_mainual [2021/06/30 15:41] admin |
cisco:begining_mainual [2021/06/30 15:43] (current) admin |
||
|---|---|---|---|
| Line 34: | Line 34: | ||
| </code> ( some interface from show int des ) | </code> ( some interface from show int des ) | ||
| Before change print configuration interface : | Before change print configuration interface : | ||
| + | <code bash> | ||
| Mainswitch#sh run int Gi2/0/14 | Mainswitch#sh run int Gi2/0/14 | ||
| Building configuration... | Building configuration... | ||
| Line 50: | Line 51: | ||
| spanning-tree bpduguard disable | spanning-tree bpduguard disable | ||
| end | end | ||
| + | </code> | ||
| After that for example change VLAN : | After that for example change VLAN : | ||
| - | conf t ( enter configuration mode ) | + | <code bash> |
| - | int Gi2/0/14 ( enter configuratio interface ) | + | conf t |
| - | switchport access vlan 240 ( change VLAN access ) | + | </code> ( enter configuration mode ) |
| + | <code bash> | ||
| + | int Gi2/0/14 | ||
| + | </code> ( enter configuratio interface ) | ||
| + | <code bash> | ||
| + | switchport access vlan 240 | ||
| + | </code> ( change VLAN access ) | ||
| To change VLAN access to trunk | To change VLAN access to trunk | ||
| - | no switchport access vlan 247 ( delete access mode conf ) | + | <code bash> |
| - | no switchport mode access ( delete access mode conf ) | + | no switchport access vlan 247 |
| + | </code> ( delete access mode conf ) | ||
| + | <code bash> | ||
| + | no switchport mode access | ||
| + | </code> ( delete access mode conf ) | ||
| + | <code bash> | ||
| switchport mode trunk | switchport mode trunk | ||
| - | + | </code> | |
| - | + | Save configuration : | |
| - | write ( save configuration ) | + | <code bash> |
| + | write | ||
| + | </code> ( save configuration ) | ||