Wednesday, May 13, 2015

VyOS Configure Interface As DHCP Client

Turn on your VyOS:



Enter your login name and password:

After you logged in:


Type show interfaces and press Enter.


You will see the the eth0 has no IP address:



Type show configuration and press Enter.



You will see the current configuration which the interface eth0 has not yet configured its address.



Type configure and press Enter.


# will appear which means your are now ready to configure.



Type set interface ethernet eth0 address dhcp and press Enter.



Type commit and press Enter.


Starting DHCP client on eth0 will appear.


To save the configuration, type save and press Enter.



Type exit and press Enter.


If $ will appear it means you are in operation.


Type again show interfaces and press Enter.  Now the eth0 has an IP address.


Note: Please make sure that you have running DHCP sever for your VyOS can lease IP address.


Watch this video for reference:


1 comment:

  1. I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot!
    Bios Chip Asrock

    ReplyDelete