Dr.MAD
08-04-2005, 11:36 AM
I got a question for you Linux specialists :)
For my next exam, we are supposed to set up a network with 2 hosts, and two Cisco routers (type Router2501a). Host 1 is connected to Router 1, host 2 to router 2, both via fastethernet interfaces and router 1 is connected to router 2 via serial interfaces.
Before I can start configuring the router, I need to give the hosts an IP address, a subnetmask and a default gateway.
... but we have to do all this in Linux. Problem is, I don't know much about Linux.
So here is my simple question: I know the commands needed to configure the routers, but what command do I have to use to assign an IP, a subnetmask and a gateway to a host?
Imagine the host's IP for ethernet0 interface should be X
the subnetmask (I know how you find that one if you have the IP) is Y
and the gateway (which is in my case the same IP as Router1's fastethernet IP address)... lets say that one is Z.
Can someone give me the exact command(s) I must insert to assign the IP, the Subnetmask and the gateway to the host?
I suck at Linux, and I suck even more at networking so I know this is probably a very stupid question, but please explain me in English :D
I hope my question didn't sound to confusing... thanks in advance
For my next exam, we are supposed to set up a network with 2 hosts, and two Cisco routers (type Router2501a). Host 1 is connected to Router 1, host 2 to router 2, both via fastethernet interfaces and router 1 is connected to router 2 via serial interfaces.
Before I can start configuring the router, I need to give the hosts an IP address, a subnetmask and a default gateway.
... but we have to do all this in Linux. Problem is, I don't know much about Linux.
So here is my simple question: I know the commands needed to configure the routers, but what command do I have to use to assign an IP, a subnetmask and a gateway to a host?
Imagine the host's IP for ethernet0 interface should be X
the subnetmask (I know how you find that one if you have the IP) is Y
and the gateway (which is in my case the same IP as Router1's fastethernet IP address)... lets say that one is Z.
Can someone give me the exact command(s) I must insert to assign the IP, the Subnetmask and the gateway to the host?
I suck at Linux, and I suck even more at networking so I know this is probably a very stupid question, but please explain me in English :D
I hope my question didn't sound to confusing... thanks in advance