change_ip_address_cmd_line
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
change_ip_address_cmd_line [2017/02/28 13:06] – created walkeradmin | change_ip_address_cmd_line [2017/02/28 13:17] – [Introduction] walkeradmin | ||
---|---|---|---|
Line 12: | Line 12: | ||
\\ | \\ | ||
\\ | \\ | ||
- | + | Once connected via a KVM, use the following command from the CMD Line. | |
+ | \\ | ||
+ | ifconfig eth2 ipaddress/ | ||
+ | \\ | ||
+ | \\ | ||
+ | On my VSPP units there are some SFPs, and while there is nothing plugged in to them so they don't appear when I do an ifconfig or ip a, I think they have somehow nabbed eth0 and eth1, so eth2 is my first ip interface. | ||
+ | \\ | ||
+ | \\ | ||
+ | As an example, the following would assign 192.168.27.20 subnet 255.255.255.0 to the VSPP. | ||
+ | \\ | ||
+ | ifconfig eth2 192.168.27.20/ | ||
+ | \\ | ||
+ | \\ | ||
+ | Remember if you reboot these details will be lost. | ||
+ | \\ | ||
+ | \\ | ||
+ | To assign a Gateway, we can use IP Route. | ||
+ | \\ | ||
+ | ip route add default via address | ||
+ | \\ | ||
+ | \\ | ||
+ | So to add 192.168.27.254 as the default gateway, use the following: | ||
+ | \\ | ||
+ | ip route add default via 192.168.27.254 | ||
+ | \\ | ||
+ | \\ | ||
+ | Remember if you reboot these details will be lost. | ||
+ | \\ | ||
+ | \\ |
change_ip_address_cmd_line.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1