VyOS on AWS


#1

Hi All,

I am trying to setup a VPN between VyOS (hosted on AWS) and GCP.
My question is how can I add the external and internal interfaces on VyOS.
Currently I only see one interface that is DHCP assigned.
I wanted to created an external interface with public IP of the VM so that I
can use it for VPN termination. 35.176.48.204 is the IP that AWS has assigned
to VyOS VM.

vyos@VyOS-AMI# show interfaces
ethernet eth0 {
address dhcp
hw-id 0a:f7:c5:91:2b:93
}
loopback lo {
}

[edit]
vyos@VyOS-AMI# set interfaces ethernet eth1 address 35.176.48.204/32

interface ethernet eth1: does not exist

Value validation failed
Set failed

Thanks,
Avirat.


#2

vyos@VyOS-AMI# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description


eth0 172.31.18.33/20 u/u
lo 127.0.0.1/8 u/u
::1/128


#3

You should study more on AWS concept and how network is organized there
Take a look what is Elastic IPs and how NAT works in AWS Cloud


#4

@avirat, agree with Syncer, you can look at AWS NAT as they do 1:1 NAT…we have automated creating such VPNs through our platform. You can check it out at www.wanclouds.net