Changes between Version 4 and Version 5 of ORCAAndVLANs

Show
Ignore:
Timestamp:
11/18/08 14:23:10 (11 years ago)
Author:
ibaldin (IP: 152.54.9.131)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ORCAAndVLANs

    v4 v5  
    33Creation of slices in ORCA consisting of edge VMs connected by VLANs should consist of the following steps 
    44 
    5  1. Pick new VLAN tag ID 
    6   * say it is 505 
     5 1. Pick new VLAN tag ID (say it is 505) 
    76 1. Access routers/switches on the path and configure the path for the VLAN. Assume links between network equipment and nodes are trunked. 
     7{{{ 
     8Vlan Declaration: 
     9----------------------- 
     106509-Renci#config t 
     11Enter configuration commands, one per line.  End with CNTL/Z. 
     126509-Renci(config)#vlan 505 
     136509-Renci(config-vlan)#name vm2vm1 
     146509-Renci(config-vlan)#exit 
     156509-Renci(config)#vlan 506 
     166509-Renci(config-vlan)#name vm2vm2 
     176509-Renci(config-vlan)#exit 
     186509-Renci(config)#exit 
     196509-Renci# 
     20 
     21 
     22Vlan Definition: 
     23--------------------- 
     246509-Renci#config t 
     25Enter configuration commands, one per line.  End with CNTL/Z. 
     266509-Renci(config)#interface vlan 505 
     276509-Renci(config-if)#logging event link-status 
     286509-Renci(config-if)#no shut 
     296509-Renci(config-if)#exit 
     306509-Renci(config)#interface vlan 506 
     316509-Renci(config-if)#logging event link-status 
     326509-Renci(config-if)#no shut 
     336509-Renci(config-if)# 
     34 
     35 
     36Vlan Assignment (to an interface): 
     37---------------------------------------------- 
     386509-Renci(config-if)#interface gig1/2 
     396509-Renci(config-if)#switchport 
     406509-Renci(config-if)#switch 
     416509-Renci(config-if)#switchport trunk encapsulation dot1q 
     426509-Renci(config-if)#switchport trunk allowed vlan 505, 506 
     436509-Renci(config-if)#switchport mode trunk 
     446509-Renci(config-if)#no ip address 
     456509-Renci(config-if)#logging event link-status 
     466509-Renci(config-if)#exit 
     476509-Renci(config)#int gig1/3 
     486509-Renci(config-if)#switchport 
     496509-Renci(config-if)#switchport trunk encapsulation dot1q 
     506509-Renci(config-if)#switchport trunk allowed vlan 505,506 
     516509-Renci(config-if)#switchport mode trunk 
     526509-Renci(config-if)#no ip address 
     536509-Renci(config-if)#logging event link 
     546509-Renci(config-if)#logging event link-status 
     556509-Renci(config-if)#exit 
     566509-Renci(config)# 
     576509-Renci(config)#exit 
     58}}} 
    859 2. Select nodes on which VMs will reside 
    960 3. Create bridges in each node for this slice  
    10   * brctl addbr bridge-for-slice1 
     61{{{ 
     62> brctl addbr bridge-for-slice1 
     63}}} 
    1164 4. Create tagged interfaces in each node for the VLAN in this slice 
    12   * vconfig add eth0 505 
    13   * ifconfig eth0.505 up 
     65{{{ 
     66> vconfig add eth0 505 
     67> ifconfig eth0.505 up 
     68}}} 
    1469 5. Attach VLAN interface to the bridge  
    15   * brctl addif bridge-for-slice1 eth0.505 
     70{{{ 
     71> brctl addif bridge-for-slice1 eth0.505 
     72}}} 
    1673 1. Enable slice bridge 
    17   * ifconfig bridge-for-slice1 up 
     74{{{ 
     75> ifconfig bridge-for-slice1 up 
     76}}} 
    1877 6. Create appropriate configurations for VMs  
    1978  * second interface should have 'bridge=<slice bridge name> option set, to make sure that vif#.# for the data interface in the VM gets attached to the bridge