Quick IP Switching?

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
smccarthy945
Level 1
Level 1
Posts: 16
Joined: Thu Feb 18, 2016 11:55 pm

Quick IP Switching?

Postby smccarthy945 » Sun Sep 03, 2017 10:10 am

I work at several different client sites and often have to use specific static IPs to get around the firewall restrictions. Before, when using Windows, I was using a program called TCP/IP Manager that would allow you to keep profiles of IP addresses with DNS, etc. You simply pick the IP profile and it would apply it to the card you chose (IE. WIFI Card). It was a fast way to switch between static IPs when needed. Sometimes I have clients where I need to switch multiple IPs for testing at the same place.

I know in Mint you can have a static IP per card which is great, however, if I need to switch between multiple static IPs on the same card (IE. WIFI) I have to manually edit the card and reboot or restart networking which is time consuming. Is there a similar tool anyone knows of for Mint/Linux in which it allows you to quickly switch between static IPs on the same interface? For example, if I need to switch between 192.168.1.10 w/DNS servers of 192.168.1.1 and .2 and then quickly switch to 10.10.1.10 w/DNS servers of 10.10.1.1 and .2 on the same WIFI card.

I need a utility that allows you to setup pre-defined IP profiles and apply them to any card you want quickly. IE. Network Profile 1 = 192.168.1.10 w/DNS .1 and .2 and GW of .1 applied to Realtek WIFI Card. Does anyone know of such a utility like TCP/IP Manager that works with Linux?

Thanks in advance.

JeremyB
Level 17
Level 17
Posts: 7226
Joined: Fri Feb 21, 2014 8:17 am

Re: Quick IP Switching?

Postby JeremyB » Mon Sep 04, 2017 8:51 am

You should be able to set up different profiles in Network Manager for a connection with different IP's as I did it when I was using a hotspot for internet. I had one connection setting for a static IP and one for dynamic

smccarthy945
Level 1
Level 1
Posts: 16
Joined: Thu Feb 18, 2016 11:55 pm

Re: Quick IP Switching?

Postby smccarthy945 » Mon Sep 04, 2017 9:25 am

Thanks. So I can have multiple profiles for the same connection? IE. I can have three profiles for the built in WIFI and just switch between them? That's awesome! I didn't know you could do that! How cool. I am still thinking in terms of Windows limits.

Thanks for the excellent suggestion.

JeremyB
Level 17
Level 17
Posts: 7226
Joined: Fri Feb 21, 2014 8:17 am

Re: Quick IP Switching?

Postby JeremyB » Tue Sep 05, 2017 5:10 pm

It is pretty easy to use multiple profiles in Network Manager for the same AP, right click on the networking icon in the notification area and choose edit connections and then you can add new profiles for an AP. The profiles are stored in /etc/NetworkManager/system-connections as text but you can only view the files using sudo


Return to “Other networking topics”

Who is online

Users browsing this forum: No registered users and 2 guests