To add interfaces to a logical router, you must configure physical interface properties in the main router and assign logical interfaces to each logical router. Common physical interface properties include encapsulation types and interface-related options. To configure physical interface properties, include the desired statements at the [edit interfaces interface-name] hierarchy level.
After you configure the interfaces, you can assign logical interfaces to a logical router. To configure, include the unit statement at the [edit logical-routers logical-router-name interfaces interface-name] hierarchy level. Once you assign logical interfaces to a logical router, they are considered part of the logical router. If you do not assign a logical interface, it remains part of the main router. You can assign single logical interfaces only to one logical router at a time.
- [edit]
- logical-routers logical-router-name {
-
- interfaces {
-
-
interface-name {
-
logical-interface-statements;
-
- unit unit-number {
-
- family inet {
- address ip-address ;
- }
- }
- }
- }
-
- interfaces {
-
-
interface-name {
- physical-interface-statements;
- }
- }
- }