Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

How do I assign IP addresses to each of my VLANs?

$
0
0

Forgive me, I'm very new to JunOS.  On ArubaOS I was able to assign IP addresses to VLANs like this:

#vlan 100

(vlan100)#ip address 172.16.4.3 netmask 255.255.255.0

(vlan100)#exit

#vlan 200

(vlan 200)#ip address 172.16.5.3 netmask 255.255.255.0

 

And so on.  I'm trying to look for the equivalent way to configure this in JunOS.  I need to assign IP addresses to a couple different VLANs.  How can I accomplish this?  I believe the idea is that I need to assing inet to the unit #, but I'm not sure how a unit # differs from a VLAN on JunOS. 

 

To be clear, I do not want the switch to do the routing, I want the routing to happen at my firewall on port 23.

 

Here's my interface config:

{master:0}[edit interfaces]
root# show
interface-range access-points {
    member-range ge-0/0/0 to ge-0/0/5;
    native-vlan-id 110;
    unit 0 {
        family ethernet-switching {
            interface-mode trunk;
            vlan {
                members [ guest-wifi student-wifi internal-wifi access-points ];
            }
        }
    }
}
interface-range wired {
    member-range ge-0/0/6 to ge-0/0/21;
    unit 0 {
        family ethernet-switching {
            vlan {
                members wired;
            }
        }
    }
}
ge-0/0/0 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/1 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/2 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/3 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/4 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/5 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/6 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/7 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/8 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/9 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/10 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/11 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/12 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/13 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/14 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/15 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/16 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/17 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/18 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/19 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/20 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/21 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/0/22 {
    unit 0 {
        family ethernet-switching {
            vlan {
                members management;
            }
            storm-control default;
        }
    }
}
ge-0/0/23 {
    unit 0 {
        family ethernet-switching {
            interface-mode trunk;
            vlan {
                members all;
            }
            storm-control default;
        }
    }
}
ge-0/2/0 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
xe-0/2/0 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/2/1 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
xe-0/2/1 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/2/2 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
xe-0/2/2 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
ge-0/2/3 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
xe-0/2/3 {
    unit 0 {
        family ethernet-switching {
            storm-control default;
        }
    }
}
irb {
    unit 0 {
        family inet {
            dhcp {
                vendor-id Juniper-ex3400-24p;
            }
        }
    }
}
vlan {
    unit 0 {
        family inet {
            address 172.16.4.3/24;
        }
    }
}
vme {
    unit 0 {
        family inet {
            dhcp {
                vendor-id Juniper-ex3400-24p;
            }
        }
    }
}

    {master:0}[edit interfaces]

 


Viewing all articles
Browse latest Browse all 10307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>