354 | | == Assign Interfaces to VLANs == |
355 | | |
| 354 | == Assign Interfaces == |
| 355 | |
| 356 | On L3 devices we can have three types of links, |
| 357 | * L3 routed ports |
| 358 | * Trunk ports |
| 359 | * L2 Access Ports |
| 360 | |
| 361 | We have already configured routed ports and now we need to assign ports to our VLAN's created above. |
| 362 | |
| 363 | * Create Trunk Ports, |
| 364 | * First make the interface a trunk port. This is for the link between FAC1 and Building 1 |
| 365 | {{{ |
| 366 | FAC1(config)#interface FastEthernet 1/0 |
| 367 | FAC1(config-if)#switchport mode trunk |
| 368 | }}} |
| 369 | * Define the encapsulation |
| 370 | {{{ |
| 371 | FAC1(config-if)#switchport trunk encapsulation dot1q |
| 372 | }}} |
| 373 | * Give the Description of the interface |
| 374 | {{{ |
| 375 | FAC1(config-if)#description link to Building 1 |
| 376 | FAC1(config-if)#exit |
| 377 | }}} |
| 378 | * Allow the VLAN's that we only need. |
| 379 | {{{ |
| 380 | |
| 381 | }}} |
| 382 | * Change the Native VLAN |
| 383 | {{{ |
| 384 | |
| 385 | }}} |
| 386 | |
| 387 | Do the same for the other trunk link |
| 388 | |
| 389 | {{{ |
| 390 | FAC1(config)#interface FastEthernet 1/1 |
| 391 | FAC1(config-if)#switchport mode trunk |
| 392 | FAC1(config-if)#switchport trunk encapsulation dot1q |
| 393 | FAC1(config-if)#description link to Building 2 |
| 394 | FAC1(config-if)# |
| 395 | FAC1(config-if)# |
| 396 | FAC1(config-if)#exit |
| 397 | }}} |
| 398 | * Create Access ports. |
| 399 | * Assign interface to be in Access Mode |
| 400 | {{{ |
| 401 | FAC1(config)#interface FastEthernet 1/15 |
| 402 | FAC1(config-if)#switchport mode access |
| 403 | }}} |
| 404 | * Assign the VLAN |
| 405 | {{{ |
| 406 | FAC1(config-if)#switchport access vlan 20 |
| 407 | }}} |
| 408 | * Assign a suitable description |
| 409 | {{{ |
| 410 | FAC1(config-if)#description link to Monitoring Server |
| 411 | FAC1(config-if)#exit |
| 412 | }}} |