Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vyos@master# run sh configuration
- interfaces {
- ethernet eth0 {
- hw-id 50:e2:9f:00:10:00
- vif 100 {
- address 192.168.45.254/24
- vrf vlan100
- }
- vif 200 {
- address 192.168.45.254/24
- vrf vlan200
- }
- }
- ethernet eth1 {
- address 192.168.1.5/24
- address 192.168.1.6/24
- hw-id 50:e2:9f:00:10:01
- }
- ethernet eth2 {
- hw-id 50:e2:9f:00:10:02
- }
- ethernet eth3 {
- hw-id 50:e2:9f:00:10:03
- }
- loopback lo {
- }
- }
- nat {
- source {
- rule 10 {
- outbound-interface {
- name eth1
- }
- source {
- address 192.168.45.0/24
- }
- translation {
- address 192.168.1.5
- }
- }
- }
- }
- policy {
- route PBR {
- interface eth1
- rule 100 {
- description "192.168.1.5 to vrf/valn100"
- destination {
- address 192.168.1.5
- }
- set {
- vrf vlan100
- }
- }
- }
- }
- protocols {
- static {
- }
- }
- service {
- ntp {
- allow-client {
- address 127.0.0.0/8
- address 169.254.0.0/16
- address 10.0.0.0/8
- address 172.16.0.0/12
- address 192.168.0.0/16
- address ::1/128
- address fe80::/10
- address fc00::/7
- }
- server time1.vyos.net {
- }
- server time2.vyos.net {
- }
- server time3.vyos.net {
- }
- }
- ssh {
- }
- }
- system {
- config-management {
- commit-revisions 100
- }
- console {
- device ttyS0 {
- speed 115200
- }
- }
- host-name master
- login {
- operator-group default {
- command-policy {
- allow "*"
- }
- }
- user vyos {
- authentication {
- encrypted-password ****************
- plaintext-password ****************
- }
- }
- }
- option {
- reboot-on-upgrade-failure 5
- }
- syslog {
- local {
- facility all {
- level info
- }
- facility local7 {
- level debug
- }
- }
- }
- }
- vrf {
- name vlan100 {
- protocols {
- static {
- route 0.0.0.0/0 {
- next-hop 192.168.1.254 {
- vrf default
- }
- }
- }
- }
- table 100
- }
- name vlan200 {
- protocols {
- static {
- route 0.0.0.0/0 {
- next-hop 192.168.1.254 {
- vrf default
- }
- }
- }
- }
- table 200
- }
- }
- [edit]
Advertisement
Add Comment
Please, Sign In to add comment