How to configure a static IP address in Vyatta
|
07-15-2013, 01:39 PM
Post: #1
|
|||
|
|||
How to configure a static IP address in Vyatta
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)