06-18-2015 07:30 PM - edited 03-08-2019 12:37 AM
I'm using IOU on GNS3.
I have a router plugged to a switch, this switch has 3 vlan (10,20,30)
VLAN 30 is the native vlan.
Everything is ok about the performance of L2 layer but when I try to add the IP address to the trunk port of the swtch that goes to the router, this is not possible because there is no way to set the ip address on it.
I saw on GNS3 forums that to solve the problem of setting the ip address to a port of a switch all I have to do is input the command "no swtichport" on the desired trunk-to-router port.
That's ok, but if I deactive the switchport mode, how can I tag with 802.1q the frames of different vlans, because remember I'm trying to plug this switch to a router under the "router on a stick" modality.
Remember I'm using IOU on GNS3 with L2 and L3 devices.
Regards
Dionisio Barboza.
P.D.: Before using IOU the normal way to do it was simply adding the IP to the trunk port connected to the router-on-a-stick router and then I create subinterfaces on the router.
06-18-2015 07:44 PM
Dionisio
Perhaps I am not understanding some things in your post. But it seems to me that the switch port that is a trunk is operating as a layer 2 interface. And it should be somewhat obvious that you can not configure a layer 3 IP address on a layer 2 interface. It seems to me that what you need to do is to configure the IP address on a layer 3 interface - which would probably be the interface vlan n for one or more of the VLANs being carried on this trunk.
HTH
Rick
06-18-2015 07:57 PM
Richard.
First of all, thank you.
I guess I'm tired and I'm a little bit clumsy, I was missing that I need set the ip on the native vlan 30, and I was missing the "interface" word on the command: config# INTERFACE vlan 30.
Sorry for this question :(.
And once again, thanks for you consideration.
06-18-2015 08:25 PM
Dionisio
You are quite welcome. This forum is a very good place to explore what is involved in networking and to learn from experience. I hope to see your continuing participation in the forum.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide