Add additional IPV6 on Vultr VPS

in #vultr6 years ago (edited)

Any VPS that you rent from Vultr come with 1 IP4 and 1 IPV6. In some case you want to add more IPV6.
In my case I wanted to run Few Masternodes on same VPS.
Lets get going.

1.

Click on the VPS that you want to add IPV6 on.
-0.png

2.

Click on setting.
-1.png

3.

On the top you will find IPV6, click on it. In the middle of the page you will file Recursive DNS.
1.png

4.

For my Recursive DNS I have 2001:19f0:3000:1704::6 .
Take first 2 or 3 set of numbers

2001:19f0:3000

Add

::1

To get IPV6.

Following would be IPv6

2001:19f0:3000::1

Now keep changing last digit to obtain next IPV6.I made followingIPV6 for my self.

2001:19f0:3000::3
2001:19f0:3000::4
2001:19f0:3000::5
2001:19f0:3000::6
2001:19f0:3000::7
2001:19f0:3000::8
2001:19f0:3000::9

5.

Now let's ssh into VPS by using IP4. Once you are in, type the following command.

nano /etc/network/interfaces

You will see 1 IP4 and 1 IPV6.
3.png

6.

Now add "up /sbin/ip -6 addr add dev ens3" following by IPV6 that you made earlier.

up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::3
up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::4
up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::5
up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::6
up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::7
up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::8
up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::9

2.png

save the file (on Mac) control "x" then hit "Y" then hit enter.

Restart your network by following command.

sudo systemctl restart networking

Wait for few seconds. Do ifconfig to see your IP info.

4.png

All Done.

Note.

When ever you use IPV6, you need to use it in [ ] .

[up /sbin/ip -6 addr add dev ens3 2001:19f0:3000::3]

Good luck...

Sort:  

Congratulations @manimj! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.030
BTC 59181.56
ETH 2521.00
USDT 1.00
SBD 2.47