VMware Cloud Community
greggap
Contributor
Contributor
Jump to solution

Ifconfig not saving

Hi All,

I am trying to change the IP on my host and it changes it when I do

the command but when I reboot it shows the old IP. What am I doing wrong?

I am using this command.

ifconfig vswif0 10.188.34.121 netmask 255.255.255.128

Thanks,

Greg

0 Kudos
1 Solution

Accepted Solutions
oreeh
Immortal
Immortal
Jump to solution

Are you on the same subnet?

If yes change the IP, save then change the gateway.

View solution in original post

0 Kudos
7 Replies
oreeh
Immortal
Immortal
Jump to solution

Use the VC client or the corresponding esxcfg- commands instead.

greggap
Contributor
Contributor
Jump to solution

How would I do that, I only have access to the console currently..

0 Kudos
oreeh
Immortal
Immortal
Jump to solution

esxcfg-vswif modifies the console connecton (esxcfg-vswif -h gives you the details)

0 Kudos
greggap
Contributor
Contributor
Jump to solution

Still no luck

I tried

esxcfg -vswif0 -i IPADDRESS -n NETMASK vswif0

I also tried editing the etc/hosts file and that didn't help either..

0 Kudos
oreeh
Immortal
Immortal
Jump to solution

delete the old vswif first then add a new one or disable it and enable it afterwards

0 Kudos
greggap
Contributor
Contributor
Jump to solution

I have access to the VI client now and I can change the SC IP but not the gateway..

0 Kudos
oreeh
Immortal
Immortal
Jump to solution

Are you on the same subnet?

If yes change the IP, save then change the gateway.

0 Kudos