Hi, i rent an VPS with ubuntu server. I have added additional IPv4 adresses to them.
Here are some outputs from the setup there:
root@case:~# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet [login to view URL] netmask [login to view URL]
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 21 bytes 969 (969.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 969 (969.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
venet0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP> mtu 1500
inet [login to view URL] netmask [login to view URL] broadcast 0.0.0.0 destination [login to view URL]
inet6 ::2 prefixlen 128 scopeid 0x80<compat,global>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 0 (UNSPEC)
RX packets 5304 bytes 1345906 (1.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3062 bytes 302252 (302.2 KB)
TX errors 0 dropped 10 overruns 0 carrier 0 collisions 0
venet0:0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP> mtu 1500
inet 5.132.159.10 netmask [login to view URL] broadcast 5.132.159.10 destination 5.132.159.10
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 0 (UNSPEC)
venet0:1: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP> mtu 1500
inet 5.132.159.11 netmask [login to view URL] broadcast 5.132.159.11 destination 5.132.159.11
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 0 (UNSPEC)
-------------------------------------------------------------------------------
root@case:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 0.0.0.0 0.0.0.0 U 0 0 0 venet0
-------------------------------------------------------------------------------
root@case:~# ip route
default dev venet0 scope link
I tried something with route default gw and other options but couldnt get it run. What i dont want is the ifdown, ifup things because i need all interfaces available everytime, but i want to change the default IP where the hole traffic runs. I have coded an web Scraper, and i want to switch between my available IP-Adresses each time the bot gets in sleep for some secounds. So i just need the right commands/setup the rest i will implement self in my code.
Hello,
I'm expert. I have more than 7+ years of experience as a Linux System administrator.
I'll do this task easily within time limit. And I already did it for many clients.
Ping me ASAP.
Also have a look over my profile.
Thank you!
Good evening,
I can help you with this problem. As I understood, You don't want to use ifup/ifdown since that potentially takes more time and more importantly disrupts running apps.
I can provide you with an alternative approach that'll switch the IP without any disruption. I have been freelancing for over 2 years now and I have been using linux for 7 years I also like messing around with Software defined networks so this is quite straightforward for me.
Please drop a message if you'd like me to help you with this problem.
Stay safe
Thanks and Regards
Ishan Jain