Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-20-2005, 01:10 PM
|
#1
|
LQ Newbie
Registered: Jan 2004
Location: Italy :-)
Distribution: Ubuntu
Posts: 7
Rep:
|
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!
|
|
|
08-20-2005, 04:03 PM
|
#2
|
Member
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197
Rep:
|
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
|
|
|
08-21-2005, 02:05 PM
|
#3
|
LQ Newbie
Registered: Jan 2004
Location: Italy :-)
Distribution: Ubuntu
Posts: 7
Original Poster
Rep:
|
Thank You very much!
I'll try immediatly 
|
|
|
08-21-2005, 02:30 PM
|
#4
|
Member
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197
Rep:
|
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:
|
|
|
All times are GMT -5. The time now is 10:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|