Two things.

1) Your DHCP config should be handing out the inside ip of the vyatta box for the default-gateway to clients, in this case 10.0.0.1, not the default gateway of the vyatta box itself.

2) You need to give the vyatta box a name server so it can resolve addresses to get to the apt repository for updates. Do this:

set system name-server 192.168.0.2
commit
save

And that will allow the vyatta router to look up host names to get on the internet.


------------------
Aubrey Wells
Senior Engineer
Shelton | Johns Technology Group
404.478.2790
www.sheltonjohns.com



On Nov 16, 2007, at 9:40 AM, GVerris wrote:

Hi my name is Giannis and I am a new user of vyatta and I have some problems

I use the vc3



This is my network



PC1  (IP A)

PC2  (IP B)

PC3  (IP C)



SERVER (IP D)



ROUTER (NOT VYATTA) (IP E)

(DNS & DHCP is disabled I want to used it as gateway only)

And the role of firewall, dhcp, dns, router etc I want to be the vyatta



Here is my config.boot



/*XORP Configuration File, v1.0*/

protocols {

    static {

        disable: false

        route 0.0.0.0/0 {

            next-hop: 192.168.0.1

            metric: 1

        }

    }

}

policy {

}

interfaces {

    restore: false

    loopback lo {

        description: ""

    }

    ethernet eth0 {

        disable: false

        discard: false

        description: "Office Lan"

        hw-id: 00:50:bf:6b:0d:ce

        duplex: "auto"

        speed: "auto"

        address 10.0.0.1 {

            prefix-length: 24

            disable: false

        }

    }

    ethernet eth1 {

        disable: false

        discard: false

        description: "Internet Wan"

        hw-id: 00:50:22:82:ef:63

        duplex: "auto"

        speed: "auto"

        address 192.168.0.2 {

            prefix-length: 24

            disable: false

        }

        firewall {

            local {

                name: "FWTELNET"

            }

        }

    }

}

service {

    dhcp-server {

        shared-network-name OfficeLAN {

            subnet 10.0.0.0/24 {

                start 10.0.0.50 {

                    stop: 10.0.0.150

                }

                dns-server 192.168.0.20

                default-router: 192.168.0.2

                lease: 86400

                domain-name: "test.router"

                authoritative: "disable"

            }

        }

    }

    nat {

        rule 1 {

            type: "masquerade"

            outbound-interface: "eth1"

            protocols: "all"

            source {

                network: "10.0.0.0/24"

            }

            destination {

                network: "0.0.0.0/0"

            }

        }

        rule 2 {

            type: "destination"

            inbound-interface: "eth1"

            protocols: "tcp"

            source {

                network: "0.0.0.0/0"

            }

            destination {

                address: "192.168.0.1"

                port-name http

            }

            inside-address {

                address: 10.0.0.30

            }

        }

    }

    telnet {

        port: 23

    }

    webgui {

        http-port: 80

        https-port: 443

    }

}

firewall {

    log-martians: "enable"

    send-redirects: "disable"

    receive-redirects: "disable"

    ip-src-route: "disable"

    broadcast-ping: "disable"

    syn-cookies: "enable"

    name FWTELNET {

        rule 1 {

            protocol: "tcp"

            action: "reject"

            log: "disable"

            source {

                network: "0.0.0.0/0"

            }

            destination {

                port-name telnet

            }

        }

        rule 2 {

            protocol: "all"

            action: "accept"

            log: "disable"

            source {

                network: "0.0.0.0/0"

            }

            destination {

                network: "0.0.0.0/0"

            }

        }

    }

}

system {

    host-name: "vyatta"

    domain-name: ""

    time-zone: "GMT"

    ntp-server "69.59.150.135"

    login {

        user root {

            full-name: ""

            authentication {

                encrypted-password: "xxxxxxxxxxxxxxxxxxxxx"

            }

        }

        user vyatta {

            full-name: ""

            authentication {

                encrypted-password: "xxxxxxxxxxxxxxxxxxxxx"



            }

        }

    }

    package {

        auto-sync: 1

        repository community {

            component: "main"

            url: "http://archive.vyatta.com/vyatta";

        }

    }

}





/* Warning: Do not remove the following line. */

/* === vyatta-config-version: "[EMAIL PROTECTED]:[EMAIL PROTECTED]:dhcp- [EMAIL PROTECTED]:[EMAIL PROTECTED]:[EMAIL PROTECTED]:[EMAIL PROTECTED]:[EMAIL PROTECTED]" === */



Here is the problems



1. I can’t see the internet the dhcp works fine and the firewall,dns I suppose.

2.       The vyatta does not connect to the internet to make updates



Please help I don’t know what is wrong



thanks
_______________________________________________
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users

_______________________________________________
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users

Reply via email to