Virtual Router with VLAN Support

Vyatta Virtual VLAN Router Configuration

I was trying to build a network with several VLAN's and found that a Layer 3 switch cost a lot of money and it was out of my budget. After looking for a solution that was in my budget I used the Vyatta Open Source Router platform to build my router.  This configuration will allow you to create a router with several VLAN's on a physical or virtual.

Default User accounts for Vyatta

user: vyatta
pass: vyatta  (change the default password thru the installation)

Configuration of  Interfaces IPv4

configure
set interfaces ethernet eth0 address 192.168.1.5/24
set interface ethernet eth0 description “Description”
set system gateway-address 192.168.1.1
commit
save
exit

Configurationof Interfaces IPv6

configure
set interface ethernet eth1 2001:db8:2::2/64
commit
save
exit

Configure IPv6 Tunnel

configure
edit interfaces tunnel tun0
set encapsulation sit
set local-ip 192.168.1.1
set remote-ip 123.123.123.123
set address 2001:wwww:xxxx:yyyy::2/64
set description “HE.NET IPv6 Tunnel”
exit
set protocols static interface-route6 ::/0 next-hop-interface tun0
commit
save
exit

Configure DNS Servers

configure
set system name-server 4.2.2.2
set system name-server 8.2.2.2
commit
save
exit

Create Trunk

Configure
set interfaces ethernet eth1 description VLAN-TRUNK
set interfaces ethernet eth1 vif ## description VLAN-DESCRIPTION
set interfaces ethernet eth1 vif ## address 192.168.2.1/24
commit
save
exit

Configure DHCP

configure
set service dhcp-server
set service dhcp-server shared-network-name VLAN2_Pool subnet 192.168.2.0/24 start 192.168.2.100 stop 192.168.2.254
set service dhcp-server shared-network-name VLAN2_Pool subnet 192.168.2.0/24 default-router 192.168.2.1
set service dhcp-server shared-network-name VLAN2_Pool subnet 192.168.2.0/24 dns-server 192.168.2.1
set service dhcp-server shared-network-name VLAN2_Pool subnet 192.168.2.0/24 domain-name domain.com
commit
save
exit

Configure DNS forwarding

configure
set service dns forwarding listen-on eth1.vlanID (ex. eth1.1, eth1.2)
set service dns forwarding name-server 192.168.1.10
commit
save
exit

Enable SSH

configure
set service ssh
commit
exit

Configure NTP

configure
set service time-zone US/Central
commit
save
exit

Configure Hostname

configure
set system host-name r1
commit
save
exit

Vyatta Documentation is located: http://www.vyatta.com/download/docdl

Subscribe For Latest Updates

Sign up for best of digital marketing, livestream and technology opinions on what matters to you.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: