Link to home
Create AccountLog in
IBM System i

IBM System i

--

Questions

--

Followers

Top Experts

Avatar of marksajatovic
marksajatovic

Changing gateway on AS/400
                           Work with TCP/IP Routes                          
                                                            Type options, press Enter.                                                  
   1=Add   2=Change   4=Remove   5=Display                                  
                                                                             
      Route            Subnet           Next             Preferred          
 Opt  Destination      Mask             Hop              Interface          
                                                                             
      *DFTROUTE        *NONE            10.0.0.1         *NONE              
      10.0.3.0         255.255.255.0    10.0.0.6         *NONE              
      10.36.1.0        255.255.255.0    10.0.0.6         *NONE              
      10.36.2.0        255.255.255.0    10.0.0.6         *NONE              
                                                                             
 Need to change the dftroute a.k.a gateway on our as/400. It is locked when you try and change via the 2 command.

                            Work with TCP/IP Routes                          
                                                             
 Type options, press Enter.                                                  
   1=Add   2=Change   4=Remove   5=Display                                  
                                                                             
      Route            Subnet           Next             Preferred          
 Opt  Destination      Mask             Hop              Interface          
                                                                             
      *DFTROUTE        *NONE            10.0.0.1         *NONE              
      10.0.3.0         255.255.255.0    10.0.0.6         *NONE              
      10.36.1.0        255.255.255.0    10.0.0.6         *NONE              
      10.36.2.0        255.255.255.0    10.0.0.6         *NONE              
 
Logged in as QSECOFR
                                                                             

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of dedy_djajapermanadedy_djajapermana

you have to delete it (opt 4) and add it again (opt 1)
that's the only way.

Make sure it is not currently in use or you cant delete it...

Avatar of marksajatovicmarksajatovic

ASKER

So i need to shut tcp/ip down to make the change and make the change from the system console?
I currently cannot ping 10.0.2.5 from the as/400 but can from any other device on my network.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of JUSTICEJUSTICE

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

mark, yes, you don't have to end the interface, and can do it from any PC as long as it's in the same subnet as your AS/400 (if you're deleting the gateway from a pc that's connected through the gateway, connection will be lost when you delete it), of course you can do it from console or other twinax devices.
you mentioned about can't ping 10.0.2.5 from as/400, what's the as/400 ip address? you should check with your network guy, what's the correct gateway for it.

What is not in the same subnet? New physical interface?

No, if the PC you are on is not connected to the same local network as the AS/400.  If you are connecting remotely via the internet or a remote site then you will loose access when you delete the route.  As long as the AS/400 is at the same location as the PC you are using to do this you should be fine.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


marksajatovic:

You've got a fairly intriguing set of routes defined already. It appears that you're directly aware of at least five different (Internet non-routable) subnets -- 10.0.0.0, 10.0.2.0, 10.0.3.0, 10.36.1.0 and 10.36.2.0. To reach those five subnets, you have two routers(?) available via 10.0.0.1 and 10.0.0.6.

Further, you're using Class-A addressing (10.x.x.x) with Class-C subnetting (255.255.255.0). Nothing _technically_ wrong with that though it might cause trouble elsewhere in your local network if someone isn't managing IP addresses and properly configuring all routers. I assume your local IP address is 10.0.0.x (where x is other than 0, 1, 6 and 255) with subnet mask 255.255.255.0, which makes your local subnet 10.0.0.0.

Now, you want to change your default route? Do you know what you want to change it to and why?

Have you done a traceroute from a PC that can ping 10.0.2.5 successfully to see what it routes through?

Tom


IBM System i

IBM System i

--

Questions

--

Followers

Top Experts

IBM i, formerly known as AS/400, is a proprietary, midrange, object-based operating and application system. It includes a relational database, a menu-driven interface, support for multiple users, block-oriented terminal support and printers, and supports security, communications, and web-based application servers including Websphere, Apache and Tomcat.