Tutorials Vyatta DHCP Case Study Vyatta B Config
protocols {
     static {
          route 0.0.0.0/0 {
               next-hop: 10.0.2.2
          }
     }
}
policy {
}
interfaces {
     loopback lo {
     }
     ethernet eth0 {
          hw-id: 00:02:55:66:77:88
          address 10.0.2.1 {
               prefix-length: 24
          }
     }
}
service {
     dhcp-server {
          shared-network-name mydhcp {
               subnet 10.0.1.0/24 {
                    start 10.0.1.200 {
                         stop: 10.0.1.210
                    }
                    start 10.0.1.212 {
                         stop: 10.0.1.222
                    }
                    dns-server 10.0.2.3
                    default-router: 10.0.1.2
               }
               subnet 10.0.2.0/24 {
               }
          }
     }
     telnet {
     }
}
firewall {
}
system {
     host-name: "Vyatta-RouterA"
     ntp-server "69.59.150.135"
     login {
          user root {
               authentication {
                    encrypted-password: "$1$$Ht7gBYnxI1xCdO/JOnodh."
               }
          }
          user vyatta {
               authentication {
                    encrypted-password: "$1$$Ht7gBYnxI1xCdO/JOnodh."
               }
          }
     }
     package {
          repository community {
               component: "main"
               url: "http://archive.vyatta.com/vyatta"
          }
     }
}
rtrmgr {
     config-directory: "/opt/vyatta/etc/config"
}