Difference between revisions of "SUSE Cloud/Networking"

From MicroFocusInternationalWiki
Jump to: navigation, search
(init)
 
(add portfast equivalent for huawei)
Line 30: Line 30:
 
  port trunk pvid vlan 84
 
  port trunk pvid vlan 84
 
  port trunk allow-pass vlan 82 to 86
 
  port trunk allow-pass vlan 82 to 86
 +
stp edged-port enable
 
  display vlan 84
 
  display vlan 84
  

Revision as of 16:25, 13 February 2017

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

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 the below for interfaces 6-9
interface Ethernet1/5
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
commit
save