NAT (WAN port) Configuration of Switch T2600G-28MPS
I have just brought a new switch (T2600G-28MPS) [JetStream 24-Port Gigabit L2 Managed PoE+ Switch with 4 SFP Slots]. I am having a problem when configuring the switch. Please refer my below figure.
In fact, I got a static IP from my university (suppose it is A.B.C.D). I can access the Internet using that IP. I tried static routing after logging in the switch (using web interface, address: 192.168.0.1) with Destination (192.168.0.0), Subnet Mask (255.255.255.0), Next Hop (A.B.C.D) but I could not access the Internet from Local Network computers as shown in the figure. Besides, the routing table is not changed. Destination Network (192.168.0.0/24), Next Hop (192.168.0.1).
One important thing is that I do not have permission to config the router.
Can anyone help me config this switch with NAT function? More detail, the switch creates a private network and all the packets from the private network will be forwarded to the address A.B.C.D such as NAT.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
Hi John:
For this case, You need configure Static routing in Router also. If you can not configure anything in router, this issue can not be solved.
We can simiplify your topology:
Router(1.1.1.1/24)-------(VLAN1 1.1.1.2/24)switch(VLAN 2 192.168.0.1/24)------LAN(192.1680.x/24)
Now, you configured Static routing(default gateway) in switch as:
0.0.0.0 0.0.0.0 1.1.1.1
PS: you need not configure static routing for 1.1.1.0/24 and 192.168.0.0/24, because they are Direct routing.
Now, If there are one PC in LAN want to access the interent, his default gateway is 192.168.1.0. This pC will forward the data to switch.
The Switch will forward this data to router, router forward this data to internet.
But when internet reply the data to router, router do not know how to forward the data to this PC(have not routing entry), so you should configure
Static routing in router.
PS: Most of B2B Switch do not support NAT function, so you can not configure NAT in this switch also.
- Copy Link
- Report Inappropriate Content
Hi dude
I think TPTHZ is right. NAT is a kind of gateway's function.
Is you want use another subnet, I think the switch can support DHCP server to do that.
- Copy Link
- Report Inappropriate Content
Hi TPTHZ,
Thanks for your valuable reply.
In fact, I did configure the default gateway for the switch following this guideline (https://www.tp-link.com/us/faq-2123.html).
As I mentioned in the original post, I could not access the router because it is managed by someone and they did not allow me to config the router.
Could I find other ways to route all packets (in and out) in the switch using the IP address A.B.C.D?
For example, we can create a VLAN (private VLAN) for some ports as a private network. Also, we can create another VLAN for the port which connect to the router using IP address A.B.C.D. Then we move the configuration problem to "how can two VLANs communicate with others".
Please look at this link:
https://community.tp-link.com/en/business/forum/topic/99115
Thank you in advance.
- Copy Link
- Report Inappropriate Content
Hi Panda,
Can you explain your suggestion in details? I do not understand how DHCP slove my configuration problem.
Thank for you time.
- Copy Link
- Report Inappropriate Content
JohnPekl wrote
Hi TPTHZ,
Thanks for your valuable reply.
In fact, I did configure the default gateway for the switch following this guideline (https://www.tp-link.com/us/faq-2123.html).
As I mentioned in the original post, I could not access the router because it is managed by someone and they did not allow me to config the router.
Could I find other ways to route all packets (in and out) in the switch using the IP address A.B.C.D?
For example, we can create a VLAN (private VLAN) for some ports as a private network. Also, we can create another VLAN for the port which connect to the router using IP address A.B.C.D. Then we move the configuration problem to "how can two VLANs communicate with others".
Please look at this link:
https://community.tp-link.com/en/business/forum/topic/99115
Thank you in advance.
Hi John
Your demand is different from the link that your support. If you only want to configure VLAN routing, it is not complex.
But you hope computer are able to access the internet. As I said in the last reply, Router have not "Correct Routing Entry"is the real issue.
I know how to arrive your home, but you do not know how to arrive my home, so we can not commnunicate with each other.
This is the same situation.
- Copy Link
- Report Inappropriate Content
JohnPekl wrote
Could I find other ways to route all packets (in and out) in the switch using the IP address A.B.C.D?
Why don't you just add your own router to the A.B.C.D network with NATing your subnet? This way you have every option to configure things for yourself.
- Copy Link
- Report Inappropriate Content
R1D2 wrote
JohnPekl wrote
Could I find other ways to route all packets (in and out) in the switch using the IP address A.B.C.D?
Why don't you just add your own router to the A.B.C.D network with NATing your subnet? This way you have every option to configure things for yourself.
I can ONLY config the switch, the router is manged by someone. Besides, I could not buy a new router because of financal isssue. If I can do (either buy a router or able to config the router), I would not raise this question.
- Copy Link
- Report Inappropriate Content
JohnPekl wrote:
I can ONLY config the switch, the router is manged by someone. Besides, I could not buy a new router because of financal isssue. If I can do (either buy a router or able to config the router), I would not raise this question.
I did understand already that you can't manage the main router.
What I can not understand is that you try to configure switch for things it's not made for. If it would support NAT, it would be no switch anymore, but became a router.
Furthermore, the switch is an expensive 370 USD device, while a cheap 70 USD device such as EP-X would be the solution for your problem.
- Copy Link
- Report Inappropriate Content
It is not NAT-Router. This switch does not support NAT. You cannot make more than one host to work.
Sell switch, buy cheap Miktorik router.
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 4969
Replies: 9
Voters 0
No one has voted for it yet.