> For the complete documentation index, see [llms.txt](https://netlabs.gitbook.io/juniper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://netlabs.gitbook.io/juniper/4-multiarea-ospf/nastroika-virtual-link/konfiguracii-ustroistv.md).

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

{% tabs %}
{% tab title="Sun" %}

```
system {
    host-name Sun;
}
interfaces {
    xe-0/0/0 {
        native-vlan-id 1;
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members default;
                }
            }
        }
    }
    xe-0/0/1 {
        native-vlan-id 1;
        unit 0 {                        
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members default;
                }
            }
        }
    }
    xe-0/0/2 {
        native-vlan-id 1;
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members default;
                }
            }
        }
    }
    xe-0/0/3 {
        native-vlan-id 1;
        unit 0 {
            family ethernet-switching { 
                interface-mode trunk;
                vlan {
                    members default;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
vlans {
    default {
        vlan-id 1;
    }
}
```

{% endtab %}

{% tab title="Venus" %}

```
system {
    host-name Venus;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {               
                address 10.2.2.1/25;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.1/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.2 {
            interface ge-0/0/0.0;
            interface lo0.0 {
                passive;
            }
        }
    }
}                                       
```

{% endtab %}

{% tab title="Earth" %}

```
system {
    host-name Earth;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {               
                address 10.2.2.2/25;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.2/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.2 {
            interface ge-0/0/0.0 {
                priority 150;
            }
            interface lo0.0 {
                passive;
            }
        }                               
    }
}
```

{% endtab %}

{% tab title="Mercury" %}

```
system {
    host-name Mercury;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {               
                address 10.2.2.3/25;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.3/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.2 {
            interface ge-0/0/0.0;
            interface lo0.0 {
                passive;
            }
        }
    }
}                                       
```

{% endtab %}

{% tab title="Moon" %}

```
system {
    host-name Moon;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {               
                address 10.2.2.4/25;
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family inet {
                address 10.2.2.200/31;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.4/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.2 {                  
            interface ge-0/0/0.0 {
                priority 200;
            }
            interface ge-0/0/1.0 {
                interface-type p2p;
            }
            interface lo0.0 {
                passive;
            }
        }
    }
}

```

{% endtab %}

{% tab title="Mars" %}

```
system {
    host-name Mars;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {               
                address 10.1.1.0/31;
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family inet {
                address 10.2.2.201/31;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.5/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.2 {                  
            area-range 10.2.2.0/24;
            interface ge-0/0/1.0 {
                interface-type p2p;
            }
            interface lo0.0 {
                passive;
            }
        }
        area 0.0.0.1 {
            interface ge-0/0/0.0 {
                interface-type p2p;
            }
        }
        area 0.0.0.0 {
            virtual-link neighbor-id 192.168.0.6 transit-area 0.0.0.1;
        }
    }
}
```

{% endtab %}

{% tab title="Jupiter" %}

```
system {
    host-name Jupiter;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {               
                address 10.1.1.1/31;
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family inet {
                address 10.0.0.0/31;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.6/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.1 {                  
            interface ge-0/0/0.0 {
                interface-type p2p;
            }
        }
        area 0.0.0.0 {
            virtual-link neighbor-id 192.168.0.5 transit-area 0.0.0.1;
            interface ge-0/0/1.0 {
                interface-type p2p;
            }
            interface lo0.0 {
                passive;
            }
        }
    }
}
```

{% endtab %}

{% tab title="Saturn" %}

```
system {
    host-name Saturn;
}
interfaces {
    ge-0/0/1 {
        unit 0 {
            family inet {               
                address 10.0.0.1/31;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.7/32;
            }
        }
    }
}
protocols {
    ospf {
        reference-bandwidth 10g;
        area 0.0.0.0 {
            interface ge-0/0/1.0 {
                interface-type p2p;
            }
            interface lo0.0 {
                passive;
            }
        }                               
    }
}
```

{% endtab %}
{% endtabs %}
