DHCP address on router interface?



  • Any way to have an external DHCP server assign an address to a given ethernet interface?
    I have a j2320 router with the latest load…



  • I need help!!! I’d like to know if it possible to configure two DHCP servers on tha same LAN using one server as master DHCP and the second one as backup DHCP, ust like vrrp does. Can anyone give me some information? Here it is my conf. Thank you in advance

    Last changed: 2009-03-17 10:00:38 UTC

    version 9.0R1.10;
    system {
        host-name NATCC-Stadera-A-VB2;
        domain-name Stasera66;
        root-authentication {
            encrypted-password “$1$u9HjnLHU$cOPlp3PRMkS3JFRY4lPid.”; ## SECRET-DATA
        }
        login {
            user telnet {
                full-name telnet;
                uid 2000;
                class super-user;
                authentication {
                    encrypted-password “$1$qifGSA5Z$H74KZUn4PMYpcSMEzLU1O.”; ## SECRET-DATA
                }
            }
        }
        services {
            ssh;
            telnet;
            web-management {
                http;
                session {
                    idle-timeout 10;
                    session-limit 15;
                }
            }
            dhcp {
                pool 172.51.30.0/23 {
                    address-range low 172.51.30.30 high 172.51.31.252;
                    maximum-lease-time infinite;
                    default-lease-time infinite;
                    router {
                        172.51.30.1;
                    }
                    option 176 string MCIPADD=172.51.30.19,172.51.30.20,172.51.30.21,172.51.30.22,MCPORT=1719,HTTPSRVR=172.51.30.10,TFTPSRVR=172.51.30.10,VLANTEST=60,L2QVLAN=0;
                }
            }
        }
        syslog {
            user * {
                any emergency;
            }
            file messages {
                any any;
                authorization info;
            }
            file interactive-commands {
                interactive-commands any;
            }
        }
        ntp {
            server 10.168.176.200;
            server 10.168.176.199;
        }
    }
    interfaces {
        ge-0/0/0 {
            unit 0 {
                family inet {
                    address 10.222.6.101/24;
                }
            }
        }
        ge-0/0/1 {
            unit 0 {
                description “Phone Interface”;
                family inet {
                    address 172.51.30.2/23 {
                        vrrp-group 100 {
                            virtual-address 172.51.30.1;
                            priority 100;
                            preempt;
                            accept-data;
                        }
                    }
                }
            }
        }
        e1-1/0/0 {
            description TD_925615/86;
            clocking external;
            encapsulation frame-relay;
            lmi {
                lmi-type itu;
            }
            unit 0 {
                point-to-point;
                no-traps;
                dlci 31;
                no-keepalives;
                family inet {
                    address 172.100.2.78/30;
                }
            }
        }
        e1-1/0/1 {
            description TD_925615/88;
            clocking external;
            encapsulation frame-relay;
            lmi {
                lmi-type itu;
            }
            unit 0 {
                point-to-point;
                no-traps;
                dlci 32;
                no-keepalives;
                family inet {
                    address 172.101.2.78/30;
                }
            }
        }
        lo0 {
            unit 0 {
                family inet {
                    address 127.0.0.1/32;
                }
            }
        }
    }
    snmp {
        description NA_TCC_VB2;
        location “Napoli Via Stadera 66”;
        contact Avaya;
        community avaya2007 {
            authorization read-only;
        }
        community “spectrum!2008” {
            authorization read-only;
        }
        trap-group spectrum {
            categories {
                authentication;
                chassis;
                link;
                remote-operations;
                routing;
                startup;
                rmon-alarm;
                vrrp-events;
                configuration;
            }
            targets {
                10.104.101.221;
            }
        }
    }
    routing-options {
        static {
            route 10.0.0.0/8 {
                next-hop 10.222.6.1;
                no-readvertise;
            }
        }
        forwarding-table {
            export load-balance;
        }
    }
    protocols {
        rip {
            group jweb-rip {
                export [ jweb-policy-rip jweb-policy-direct ];
                neighbor e1-1/0/0.0;
                neighbor e1-1/0/1.0;
                neighbor ge-0/0/1.0;
            }
        }
    }
    policy-options {
        policy-statement jweb-policy-direct {
            from {
                protocol direct;
                interface [ e1-1/0/0.0 e1-1/0/1.0 ge-0/0/1.0 ];
            }
            then accept;
        }
        policy-statement jweb-policy-rip {
            from protocol rip;
            then accept;
        }
        policy-statement load-balance {
            then {
                load-balance per-packet;
            }
        }
    }



  • Ok, cool thanks.  I might check that out…



  • As far as I know, with regular JUNOS, you can only have a J2320 act as a DHCP client when running autoinstallation when first setting up a router. Other than that, only DHCP server is supported.

    But if you load JUNOS with Enhanced Services, then you can configure a J2320 as a DHCP client. But then this will also switch the J2320 from packet-forwarding based to session based. But this is not necessarily a bad thing.


 

46
Online

38.4k
Users

12.7k
Topics

44.5k
Posts