Конфигурации устройств

RSTP

system {
    host-name Sun;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        native-vlan-id 4000;
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members all;
                }
            }
        }
    }
    xe-0/0/1 {
        native-vlan-id 4000;
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members all;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
protocols {
    mvrp {
        interface xe-0/0/0 {
            registration restricted;
        }
        interface xe-0/0/1 {
            registration restricted;
        }
    }
    rstp {
        bridge-priority 0;
        interface xe-0/0/0;
        interface xe-0/0/1;
    }
}
vlans {
    mgmt {
        description native;
        vlan-id 4000;
    }
    v100 {
        vlan-id 100;
    }
    v200 {
        vlan-id 200;
    }
    v300 {
        vlan-id 300;
    }
    v400 {
        vlan-id 400;
    }
    v500 {
        vlan-id 500;
    }
    v600 {
        vlan-id 600;
    }
}

VSTP

system {
    host-name Sun;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members all;
                }
            }
        }
    }
    xe-0/0/1 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members all;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
protocols {
    vstp {
        vlan all {
            interface all;
        }
    }
}
vlans {
    v100 {
        vlan-id 100;
    }
    v200 {
        vlan-id 200;
    }
    v300 {
        vlan-id 300;
    }
    v400 {
        vlan-id 400;
    }
    v500 {
        vlan-id 500;
    }
    v600 {
        vlan-id 600;
    }
}

MSTP

system {
    host-name Mercury;
    root-authentication {
        encrypted-password "$6$60a/FKxt$n8t.mv6n1f.ig/Onlpif4Zd3x2PXx3pnL2qnWvJ4iZO1UdYPn2F/zYVCZY6H41XMxCq9PxROJWdfw7xjAWKws."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        native-vlan-id 4000;
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members [ 10 110 510 610 1010 1200 1410 1500 4000 ];
                }
            }
        }
    }
    xe-0/0/1 {
        native-vlan-id 4000;
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members [ 10 110 510 610 1010 1200 1410 1500 4000 ];
                }
            }
        }
    }
    xe-0/0/2 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members 10;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
protocols {
    mstp {
        configuration-name Sun-System-1;
        revision-level 1;
        interface all;
        msti 1 {
            vlan 1-500;
        }
        msti 2 {
            vlan 501-1000;
        }
        msti 3 {
            bridge-priority 0;
            vlan 1001-1700;
        }
    }
}
vlans {
    mgmt {
        vlan-id 4000;
    }
    v10 {
        vlan-id 10;
    }
    v1010 {
        vlan-id 1010;
    }
    v110 {
        vlan-id 110;
    }
    v1200 {
        vlan-id 1200;
    }
    v1410 {
        vlan-id 1410;
    }
    v1500 {
        vlan-id 1500;
    }
    v510 {
        vlan-id 510;
    }
    v610 {
        vlan-id 610;
    }
}

Last updated