【juniper】EX2200交换机配置案例

1、配置telnet 远程

login {
        user lab {
            uid 2001;
            class super-user;
            authentication {
                encrypted-password "$1$c6HctMS5$6P0LPfJ1IEyBH9zxhz2Gb."; ## SECRET-DATA
            }
        }
    }

2、配置access端口,以及VLAN

 ge-0/0/0 {
        unit 0 {
            family ethernet-switching {
                port-mode access;
                vlan {
                    members 80;
                }
            }
        }
    }

3、配置trunk接口

 ge-0/1/3 {
        unit 0 {
            family ethernet-switching { 
                port-mode trunk;        
                vlan {
                    members [ 10-11 80 ];
                }
            }
        }
    }

4、配置DHCP中继

forwarding-options {
    helpers {
        bootp {
            relay-agent-option;
            server 172.16.0.1;
            maximum-hop-count 10;
            minimum-wait-time 0;
            client-response-ttl 20;
            interface {
                vlan.80;
                vlan.10;
                vlan.11;
            }
        }
    }
}

5、配置静态路由

routing-options {
    static {
        route 0.0.0.0/0 next-hop 172.16.0.1;
    }
}

6、配置VLAN

vlans {
    TO_FW {
        vlan-id 80;
        l3-interface vlan.80;
    }
    vlan10 {
        vlan-id 10;
        l3-interface vlan.10;
    }
    vlan11 {
        vlan-id 11;
        l3-interface vlan.11;
    }
}

你可能感兴趣的:(运维,网络,服务器,运维)