cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re-IP a MWG from command line - 7.8.2.14

I have moved an MWG from one data center to another and have tried to reimage the machine from USB, but have proven to be unsuccessful. I am looking to now be able to access the web gui to make changes to the system but i only have access to the serial console. is there a way to re-IP the the system for gui access from the command line. Also to add even more issues, management is currently configured to go through bond0.

1 Reply
asabban
Employee
Employee
Report Inappropriate Content
Message 2 of 2

Re: Re-IP a MWG from command line - 7.8.2.14

Hello,

usually it should be enough to do the following after logging in as root (which I hope is possible via the serial console for you):

ifconfig <if> <ip> netmask <netmask> up

So for example for 192.168.100.10/24 on eth0:

ifconfig eth0 192,168.100.10 netmask 255.255.255.0 up

The bond could be a problem in case if cannot be started. If you have not configured all physical interfaces to be part of the bond maybe you can plug the cable into another interface, and configure the IP address as above?

Once the IP is applied correctly (can be checked by running ifconfig without parameters) you should be able to ping the default gateway, whose IP you need to know from your network team or the network documentation.

Once you can ping the default gateway you can set it:

route add default gw <ip>

For example if the default gateway is 192.168.100.1:

route add default gw 192.168.100.1

When the default gateway is setup outgoing and incoming connectivity should be working. At least a connect via SSH should be possible, even if the UI port was bound to a specific IP.

Note: This won't survive a reboot. Once you restored connectivity, access the UI and reconfigure the network in order to make the network configuration persistent.

Andre

Best,
Andre

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community