Difference between revisions of "SUSE Cloud/Networking"

From MicroFocusInternationalWiki
Jump to: navigation, search
(Cisco: add vlan setup)
(add extra commands)
Line 18: Line 18:
 
  # repeat the below for interfaces 6-9
 
  # repeat the below for interfaces 6-9
 
  interface Ethernet1/5
 
  interface Ethernet1/5
 +
no shutdown
 
  switchport mode trunk
 
  switchport mode trunk
 
  switchport access vlan 84
 
  switchport access vlan 84
Line 51: Line 52:
 
  ip address 192.168.126.1 255.255.255.0
 
  ip address 192.168.126.1 255.255.255.0
 
  display interface Vlanif 84
 
  display interface Vlanif 84
 +
display ip routing-table
  
 
  commit
 
  commit
 
  save
 
  save

Revision as of 14:02, 14 February 2017

Getting Networking right in a cloud deployment, is one of the hardest parts and usually needs several deployment iterations.

General

When doing your first deployments, first try to get the simplemost setup working. That is, use the default 'single' mode in crowbar's network.json instead of 'dual' or 'team', use default openvswitch+gre in neutron barclamp (or linuxbridge+vlan mode if you do not need SDN).

Switch configuration

Assuming you use VLAN 84 for admin network, VLAN 85 for public network and VLAN 82-86 overall for this cloud's admin/public/storage/sdn/fixed networks

And assuming your nodes are connected to switch ports 5-9, you use the default IP ranges from network.json and your upstream router IP is 192.168.0.1

Cisco

configure terminal
# repeat for 82 to 86
vlan 82
name cloud1-xxx
no shutdown
# end repeat
# repeat the below for interfaces 6-9
interface Ethernet1/5
no shutdown
switchport mode trunk
switchport access vlan 84
switchport trunk native vlan 84
switchport trunk allowed vlan 82-86
# for older Catalyst series
spanning-tree portfast trunk
# for newer Nexus series
spanning-tree port type edge trunk
# repeat end
show running-config interface Ethernet1/5
copy running-config startup-config

Huawei

system-view
vlan batch 82 to 86
port-group cloud1
group-member 10ge 1/0/5 to 10ge 1/0/9
port link-type trunk
port trunk pvid vlan 84
port trunk allow-pass vlan 82 to 86
stp edged-port enable
display vlan 84
# If you want the switch to do the routing
# default gateway
ip route-static 0.0.0.0 0.0.0.0 192.168.0.1
# admin net
interface vlanif 84
ip address 192.168.124.1 255.255.255.0
# public net
interface vlanif 85
ip address 192.168.126.1 255.255.255.0
display interface Vlanif 84
display ip routing-table
commit
save