VMware Cloud Community
darrelleddy
Enthusiast
Enthusiast

Network configuration question

Is it possible to copy the network configuration from one host to another, then make the ip address changes needed? If so, how can this be accomplished?

Darrell

Reply
0 Kudos
2 Replies
runclear
Expert
Expert

You could script it? short of using a thrid party tool there isnt a way other than scripting i believe....

-------------------- What the f* is the cloud?!
runclear
Expert
Expert

So you could do somethign like this... just save all of your commands to a txt file and simply copy/paste into a console session..

I changed the vlan's from mystuff, but you get the idea.... if you have never used the service console to configure the network, setup a test box and teach yoruself how to configure the network from the ground up, I've forced myself to build my nodes manually just so i can "learn" by repetition...

esxcfg-vswitch -L vmnic1 vSwitch0

esxcfg-vswitch -a vSwitch1

esxcfg-vswitch -L vmnic2 vSwitch1

esxcfg-vswitch -L vmnic3 vSwitch1

esxcfg-vswitch -A VLAN_99 vSwitch1

esxcfg-vswitch -p VLAN_99vSwitch1 -v 99

esxcfg-vswitch -A VLAN_88 vSwitch1

esxcfg-vswitch -p VLAN_88 vSwitch1 -v 88

esxcfg-vswitch -A VLAN_77 vSwitch1

esxcfg-vswitch -A VLAN_66 vSwitch1

esxcfg-vswitch -p VLAN_66 vSwitch1 -v 66

esxcfg-vswitch -p VLAN_77 vSwitch1 -v 77

esxcfg-vswitch -A VLAN_55 vSwitch1

esxcfg-vswitch -p VLAN_55 vSwitch1 -v 55

esxcfg-vswitch -A VLAN_44 vSwitch1

esxcfg-vswitch -p VLAN_44 vSwitch1 -v 44

esxcfg-vswitch -A VLAN_33 vSwitch1

esxcfg-vswitch -p VLAN_33 vSwitch1 -v 33

esxcfg-vswitch -a vSwitch2

esxcfg-vswitch -A Internal vSwitch2

-------------------- What the f* is the cloud?!