switch port Access and Trunk mode
switch port Access and Trunk mode
Hi guys. I am new in networking.
We want to sell internet trafic to customers. Small ISP
We have fiber optic connection with state's backbone ISP. the fist how can we do it?
the second we have such solution like this:
We have 10 Alcatel Omniswitch 6250 and we need to create one vlan for one switch port.(to separate all ports). These ports must be access mode.(We want to connect these ports to users-customers) And 2 ports in trunk mode to communicate other switches. We will have one router 2600(cisco) we need to create one interface and about 40 subinterfaces on this router. And to connect this router to Alcatel switches.
How can I creat access and trunk ports? I learned that Alcatel doesnt use access and trunk mode terms. What terms does Alcatel use and how can I create this topology?
Sorry about my english. and mybe I couldn't explain everything correctly.
We want to sell internet trafic to customers. Small ISP
We have fiber optic connection with state's backbone ISP. the fist how can we do it?
the second we have such solution like this:
We have 10 Alcatel Omniswitch 6250 and we need to create one vlan for one switch port.(to separate all ports). These ports must be access mode.(We want to connect these ports to users-customers) And 2 ports in trunk mode to communicate other switches. We will have one router 2600(cisco) we need to create one interface and about 40 subinterfaces on this router. And to connect this router to Alcatel switches.
How can I creat access and trunk ports? I learned that Alcatel doesnt use access and trunk mode terms. What terms does Alcatel use and how can I create this topology?
Sorry about my english. and mybe I couldn't explain everything correctly.
Hello NetTech:
When I want create a trunk I write:
interface range ethernet 1/g(1-4)/ or "link that do you need "
switchport trunk allowed vlan add XX
Don´t forget that it´s necessary that you have created the vlan before.
and for access mode it´s similar:
interface range ethernet 1/e(23-24), "if you want a range of ports", for only one port interface int ethernet 1/e2
switchport access mode vlan xx
I hope you have been useful
When I want create a trunk I write:
interface range ethernet 1/g(1-4)/ or "link that do you need "
switchport trunk allowed vlan add XX
Don´t forget that it´s necessary that you have created the vlan before.
and for access mode it´s similar:
interface range ethernet 1/e(23-24), "if you want a range of ports", for only one port interface int ethernet 1/e2
switchport access mode vlan xx
I hope you have been useful
Re:
Thank you guys for your help. sorry I have been busy so I couldnt even enter this forum.cedric1 wrote:hello
i think you give update for 6200 not 6250.
switchport trunk allowed vlan add XX
=
vlan X 802.1Q slot/port
switchport access mode vlan xx
=
vlan y port default slot/port
sacaminas I asked for Alcatel I know on CISCO anyway thank you for your help.
cedrik1 Thank you. Nearly 1 or 2 week before I by myslef understood this)) But it was very difficult to figur out this. Of course my boos was angry and demanded from me internet acces))))
Anyway great thanks guys. I like this forum. I am new Alcatel user it is a little bit difficult for me to adapt but now I think these are very good devices. Because I could shape speed beter than CISCO 2960))
Re: switch port Access and Trunk mode
And sorry but I couldnt understand why 6200?
On my device written 6250. what does it mean?
Maybe new firmware or AOS update?
On my device written 6250. what does it mean?
Maybe new firmware or AOS update?
Re: switch port Access and Trunk mode
hello
second post was for devices type 6200
You are ok with your 6250 wich use AOS cli
Rgds
Cedric
second post was for devices type 6200
You are ok with your 6250 wich use AOS cli
Rgds
Cedric
Re: switch port Access and Trunk mode
thanks for reply.
I am new Alcatel user but our company will use alcatel future projects.
I am new Alcatel user but our company will use alcatel future projects.
-
- Member
- Posts: 8
- Joined: 15 Apr 2016 06:53
Re: switch port Access and Trunk mode
Hello unleashed team
I am applying this command but trunk port not allow vlan 2
nterface ethernet g2
switchport mode trunk
exit
vlan database
vlan 2
exit
interface range ethernet e(1,11,20-22)
switchport access vlan 2
exit
interface ethernet g2
switchport trunk allowed vlan add 2
exit
interface vlan 2
ip address 10.20.0.1 255.255.255.0
exit
hostname AEPL
I am applying this command but trunk port not allow vlan 2
nterface ethernet g2
switchport mode trunk
exit
vlan database
vlan 2
exit
interface range ethernet e(1,11,20-22)
switchport access vlan 2
exit
interface ethernet g2
switchport trunk allowed vlan add 2
exit
interface vlan 2
ip address 10.20.0.1 255.255.255.0
exit
hostname AEPL
Re: switch port Access and Trunk mode
Hi,
which switch did you have?
your commands
But this commands are not for switches with AOS (like OS6250/6450/6850...). If you have a switch with AOS than you can search in any post of all other switches (beside 6200).
regard Silvio
which switch did you have?
your commands
are for 6200-Switches (f.e. 6224).nterface ethernet g2
switchport mode trunk
exit
vlan database
vlan 2
exit
interface range ethernet e(1,11,20-22)
switchport access vlan 2
exit
interface ethernet g2
switchport trunk allowed vlan add 2
exit
interface vlan 2
ip address 10.20.0.1 255.255.255.0
exit
But this commands are not for switches with AOS (like OS6250/6450/6850...). If you have a switch with AOS than you can search in any post of all other switches (beside 6200).
regard Silvio
-
- Member
- Posts: 8
- Joined: 15 Apr 2016 06:53
Re: switch port Access and Trunk mode
But sir i am searching alcatel website and found the this command
Alcatel-Lucent Layer 2 Switch OS6200 Series
// Make new host name
Console# enable
Console(config)# hostname <name>
// Create new vlan(s)
Console(config)# vlan database Console
(config-vlan)# vlan <id_1>
Console(config-vlan)# vlan <begin_id end_id>
Console(config-vlan)# vlan <id_1>,<id_10>,<id_100>
Console(config-vlan)# exit
Console(config)#
// Delete existing vlan(s)
Console(config)# vlan database
Console(config-vlan)# no vlan <id_1>
Console(config-vlan)# no vlan <begin_id end_id>
Console(config-vlan)# no vlan <id_1>,<id_10>,<id_100>
Console(config-vlan)# exit Console(config)#
// Show vlan(s)
Console(config)# exit
Console# show vlan
// Assign port(s) to vlan // Access port
Console# configure
Console(config)# interface ethernet e1
Console(config-if)# switchport access vlan <id>
Console(config-if)# exit
Console(config)# interface range ethernet e(2-5)
Console(config-if)# switchport access vlan <id>
Console(config-if)# exit
Console(config)# interface range ethernet e6,e(7-9),e(11-12)
Console(config-if)# switchport access vlan <id>
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Trunk port
Console# configure
Console(config)# interface ethernet g1
Console(config-if)# switchport mode trunk
Console(config-if)# switchport trunk allowed vlan add [ all | <begin_id end_id>]
Console(config-if)# exit
Console(config)# interface range ethernet g(2-3)
Console(config-if)# switchport mode trunk
Console(config-if)# switchport trunk allowed vlan add [ all | <begin_id end_id>]
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Not assign port(s) to vlan // Not access port
Console# configure
Console(config)# interface ethernet e1
Console(config-if)# no switchport access vlan
Console(config-if)# exit
Console(config)# interface range ethernet e(2-5)
Console(config-if)# no switchport access vlan
Console(config-if)# exit
Console(config)# interface range ethernet e6,e(7-9),e(11-12)
Console(config-if)# no switchport access vlan
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Not trunk port
Console# configure
Console(config)# interface ethernet g1
Console(config-if)# switchport trunk allowed vlan remove [ all | <begin_id end_id>]
Console(config-if)# no switchport mode
Console(config-if)# exit
Console(config)# interface range ethernet g(2-3)
Console(config-if)# switchport trunk allowed vlan remove [ all | <begin_id end_id>]
Console(config-if)# no switchport mode
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Assign IP address to vlan
Console# configure
Console(config)# interface vlan <id>
Console(config-if)# ip address <ipv4_address> /<subnet_mask>
Console(config-if)# exit
Console(config)# interface vlan <id>
Console(config-if)# ip address <ipv4_address> <subnet_mask>
Console(config-if)# exit
// Not assign IP address to vlan
Console# configure
Console(config)# interface vlan <id>
Console(config-if)# no ip address
Console(config-if)# exit
// Assign IP address default gateway
Console(config)# ip default-gateway <ipv4_address>
// Not assign IP address default gateway
Console(config)# no ip default-gateway
Console(config)# exit
// Show IP address
Console# show ip interface
// Create new Account is supported for Authentication (telnet, HTTP)
Console# configure
Console(config)# username <new_username> password <new_password> level 15
Console(config)# ip http server
Console(config)# ip http authentication local
// Remove existing account is supported for Authentication (telnet, HTTP)
Console(config)# no username <new_username>
Console(config)# exit
// Save configuration
Console# copy running-config startup-config
// Delete configuration
Console# delete startup-config
// Show configuration
Console# show running-config
// Show interface status
Console# show interface status
// Show AOS version
Console# show version
// Reload switch
Console# reload
Alcatel-Lucent Layer 2 Switch OS6200 Series
// Make new host name
Console# enable
Console(config)# hostname <name>
// Create new vlan(s)
Console(config)# vlan database Console
(config-vlan)# vlan <id_1>
Console(config-vlan)# vlan <begin_id end_id>
Console(config-vlan)# vlan <id_1>,<id_10>,<id_100>
Console(config-vlan)# exit
Console(config)#
// Delete existing vlan(s)
Console(config)# vlan database
Console(config-vlan)# no vlan <id_1>
Console(config-vlan)# no vlan <begin_id end_id>
Console(config-vlan)# no vlan <id_1>,<id_10>,<id_100>
Console(config-vlan)# exit Console(config)#
// Show vlan(s)
Console(config)# exit
Console# show vlan
// Assign port(s) to vlan // Access port
Console# configure
Console(config)# interface ethernet e1
Console(config-if)# switchport access vlan <id>
Console(config-if)# exit
Console(config)# interface range ethernet e(2-5)
Console(config-if)# switchport access vlan <id>
Console(config-if)# exit
Console(config)# interface range ethernet e6,e(7-9),e(11-12)
Console(config-if)# switchport access vlan <id>
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Trunk port
Console# configure
Console(config)# interface ethernet g1
Console(config-if)# switchport mode trunk
Console(config-if)# switchport trunk allowed vlan add [ all | <begin_id end_id>]
Console(config-if)# exit
Console(config)# interface range ethernet g(2-3)
Console(config-if)# switchport mode trunk
Console(config-if)# switchport trunk allowed vlan add [ all | <begin_id end_id>]
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Not assign port(s) to vlan // Not access port
Console# configure
Console(config)# interface ethernet e1
Console(config-if)# no switchport access vlan
Console(config-if)# exit
Console(config)# interface range ethernet e(2-5)
Console(config-if)# no switchport access vlan
Console(config-if)# exit
Console(config)# interface range ethernet e6,e(7-9),e(11-12)
Console(config-if)# no switchport access vlan
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Not trunk port
Console# configure
Console(config)# interface ethernet g1
Console(config-if)# switchport trunk allowed vlan remove [ all | <begin_id end_id>]
Console(config-if)# no switchport mode
Console(config-if)# exit
Console(config)# interface range ethernet g(2-3)
Console(config-if)# switchport trunk allowed vlan remove [ all | <begin_id end_id>]
Console(config-if)# no switchport mode
Console(config-if)# exit
Console(config)# exit
Console# show vlan
// Assign IP address to vlan
Console# configure
Console(config)# interface vlan <id>
Console(config-if)# ip address <ipv4_address> /<subnet_mask>
Console(config-if)# exit
Console(config)# interface vlan <id>
Console(config-if)# ip address <ipv4_address> <subnet_mask>
Console(config-if)# exit
// Not assign IP address to vlan
Console# configure
Console(config)# interface vlan <id>
Console(config-if)# no ip address
Console(config-if)# exit
// Assign IP address default gateway
Console(config)# ip default-gateway <ipv4_address>
// Not assign IP address default gateway
Console(config)# no ip default-gateway
Console(config)# exit
// Show IP address
Console# show ip interface
// Create new Account is supported for Authentication (telnet, HTTP)
Console# configure
Console(config)# username <new_username> password <new_password> level 15
Console(config)# ip http server
Console(config)# ip http authentication local
// Remove existing account is supported for Authentication (telnet, HTTP)
Console(config)# no username <new_username>
Console(config)# exit
// Save configuration
Console# copy running-config startup-config
// Delete configuration
Console# delete startup-config
// Show configuration
Console# show running-config
// Show interface status
Console# show interface status
// Show AOS version
Console# show version
// Reload switch
Console# reload