You are not logged in or registered. Please login or register to use the full functionality of this board...
Linuxcat.org
How to configure a static IP address in Vyatta - Printable Version

+- Linuxcat.org (https://www.linuxcat.org)
+-- Forum: Linux Guides and Troubleshooting (/forumdisplay.php?fid=1)
+--- Forum: Linux Guides (/forumdisplay.php?fid=2)
+--- Thread: How to configure a static IP address in Vyatta (/showthread.php?tid=66)



How to configure a static IP address in Vyatta - knifebunny - 07-15-2013 01:39 PM

Whilst Vyatta is based off Debian, it uses methods for configuration much similar to the way you would configure a switch or a router. Therefore, simply editing the network/interfaces file won't actually work for you.

Firstly to enter the configuration mode:

Quote:configure

Assuming you want to configure eth0 as something like this:

ip 192.168.0.214
netmask 255.255.255.0
gateway 192.168.0.254
nameserver 168.8.8.8

Your commands will be the following:

Quote:set interfaces ethernet eth0 address 192.168.0.214/24

this sets the IP address and the CDIR denotes the netmask, then

Quote:set system gateway-address 192.168.0.254

This sets the gateway, then

Quote:set system name-server 168.8.8.8

sets the nameserver for dns.

You may also consider

Quote:set service ssh

to allow SSH connections.

In order to save the config, you must first

Quote:commit

then make sure you

Quote:save


Once you reboot you can check your configuration with the following:

Quote:show interfaces