cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1685
Views
0
Helpful
5
Replies
Highlighted
Beginner

assigning a public IP to a L3 switch

                   Is it possible to assign a L3 switch port with a public IP? How do you rallow data from the Internet to the above port, if possible?

Thanks.

Said

Everyone's tags (6)
5 REPLIES 5
Highlighted
Hall of Fame Guru

Re: assigning a public IP to a L3 switch

Said

Yes you can assign a pubblic IP to a L3 switch. As far as the switch is concerned it is just another IP address.

Not sure what you mean by how do you allow traffic from the internet to it. Are you trying to give a public IP to a server for example ? If so a more common solution is to use NAT on your internet router/firewall.

Perhaps if you could provide more details in terms of your current setup and what you are trying to do ?

Jon

Highlighted
Beginner

Re: assigning a public IP to a L3 switch

Thanks Jon,

The above was an interview question.

My thinking is, if you assign a switch port fon a 48 port on a L3 switch with a public IP, then port should be put on a VLAN of its own, yes? If so, how are packets from the Internet routed through the perimeter router and firewall to the above port on the switch?

Thanks.

Said

Highlighted
Hall of Fame Guru

assigning a public IP to a L3 switch

Said

If that is the full question then i'm really not sure what they were looking for.

If you assign the IP to the actual port on the switch and not the device connected to the port then you don't need a vlan you can just use -

int gi0/1

no switchport

ip address

the above is a routed port so no need for any vlan config.

As for how are the packets routed this seems a very open ended question. My answer would be "the same way everything else is routed.."   The permeter router would need a route for that IP/subnet pointing to the firewall and the firewall would need a route pointing to the L3 switch.

I'm really not sure what the question is designed to test. As i said in my previous post you don't generally use public IPs on internal equipment, you use private addressing and then use NAT on your firewall to translate private IPs to public IPs.

Was that all there was to the question ?

Jon

Highlighted
Beginner

Re: assigning a public IP to a L3 switch

The interviewer indicated that he wanted to be able to VPN inside the network.

Highlighted
Hall of Fame Guru

assigning a public IP to a L3 switch

I'm not sure how allocating a public IP to a specific port on a L3 switch is linked to VPN. L3 switches do not act as VPN endpoints so it can't be that.

Perhaps he mean't allocate a public to a device connected to the L3 switch ?

It's really difficult to give a full answer without having the full context of the question.

Jon