switch port Access and Trunk mode

User avatar
NetTech
Member
Posts: 14
Joined: 14 Nov 2010 01:39
Location: Azerbaijan

switch port Access and Trunk mode

Post by NetTech »

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.
User avatar
sacaminas
Member
Posts: 18
Joined: 01 Jun 2010 10:27
Location: Spain

Post by sacaminas »

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
User avatar
cedric1
Member
Posts: 603
Joined: 26 May 2009 18:00
Location: Luxembourg ACSE R6

Post by cedric1 »

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
User avatar
NetTech
Member
Posts: 14
Joined: 14 Nov 2010 01:39
Location: Azerbaijan

Re:

Post by NetTech »

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
Thank you guys for your help. sorry I have been busy so I couldnt even enter this forum.
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))
User avatar
NetTech
Member
Posts: 14
Joined: 14 Nov 2010 01:39
Location: Azerbaijan

Re: switch port Access and Trunk mode

Post by NetTech »

And sorry but I couldnt understand why 6200?
On my device written 6250. what does it mean?
Maybe new firmware or AOS update?
User avatar
cedric1
Member
Posts: 603
Joined: 26 May 2009 18:00
Location: Luxembourg ACSE R6

Re: switch port Access and Trunk mode

Post by cedric1 »

hello

second post was for devices type 6200

You are ok with your 6250 wich use AOS cli

Rgds

Cedric
User avatar
NetTech
Member
Posts: 14
Joined: 14 Nov 2010 01:39
Location: Azerbaijan

Re: switch port Access and Trunk mode

Post by NetTech »

thanks for reply.
I am new Alcatel user but our company will use alcatel future projects.
omkarsingh12
Member
Posts: 8
Joined: 15 Apr 2016 06:53

Re: switch port Access and Trunk mode

Post by omkarsingh12 »

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
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: switch port Access and Trunk mode

Post by silvio »

Hi,
which switch did you have?
your commands
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
are for 6200-Switches (f.e. 6224).
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
omkarsingh12
Member
Posts: 8
Joined: 15 Apr 2016 06:53

Re: switch port Access and Trunk mode

Post by omkarsingh12 »

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
Post Reply

Return to “OmniSwitch 6250”