LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   internet sharing, linux client, win server... (https://www.linuxquestions.org/questions/linux-networking-3/internet-sharing-linux-client-win-server-355228/)

huzzzo 08-20-2005 01:10 PM

internet sharing, linux client, win server...
 
hi there,
I'm getting into linux world in these days.
I have an home lan, 1 switch, 1 eth modem (not router) which is connected on the switch and some PCs.
The server that has the direct connection has winxp. (this is a temporary solution, I will set up a linux-box-router or I build another server-pc for me w/ linux).

Now I have a notebook w/ win and linux, but i prefer to use linux, but I do not know the shell commands for set up the network adapter.

actually my sever has this conf:
192.168.1.18
255.255.255.224

so how can I set up Ip, Gateway and subnet mask on my linux pc?

another question for my future plannings: with coyotelinux-like distros, I can use aMule (is this the name of eMule porting,isn't it?) with no restrictions and problems?

Thanks!

carl.waldbieser 08-20-2005 04:03 PM

Re: internet sharing, linux client, win server...
 
Quote:

Originally posted by huzzzo
hi there,
I'm getting into linux world in these days.
I have an home lan, 1 switch, 1 eth modem (not router) which is connected on the switch and some PCs.
The server that has the direct connection has winxp. (this is a temporary solution, I will set up a linux-box-router or I build another server-pc for me w/ linux).

Now I have a notebook w/ win and linux, but i prefer to use linux, but I do not know the shell commands for set up the network adapter.

actually my sever has this conf:
192.168.1.18
255.255.255.224

so how can I set up Ip, Gateway and subnet mask on my linux pc?

another question for my future plannings: with coyotelinux-like distros, I can use aMule (is this the name of eMule porting,isn't it?) with no restrictions and problems?

Thanks!

The "ifconfig" and "route" commands handle all that.
To assign an IP address (192.168.1.200) to an interface (eth0):
Code:

# ifconfig eth0 192.168.1.200
To set the default route to 192.168.1.18:
Code:

# route add -net 0.0.0.0 netmask 255.255.255.255 192.168.1.18
or
Code:

# route add -net default gw 192.168.1.18

huzzzo 08-21-2005 02:05 PM

Thank You very much!
I'll try immediatly ;)

carl.waldbieser 08-21-2005 02:30 PM

Quote:

Originally posted by huzzzo
Thank You very much!
I'll try immediatly ;)

You are welcome!
Note that these changes won't last through a reboot. For that, you will probably have to edit /etc/network/interfaces. Type the following for details:
Code:

$ man 5 interfaces


All times are GMT -5. The time now is 07:55 PM.