LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-08-2004, 10:17 AM   #1
RINO2004
LQ Newbie
 
Registered: Jun 2004
Location: Lithuania
Distribution: Slackware 9.x
Posts: 21

Rep: Reputation: 15
Reserve local ip only for Router and for nobody else.


Hi
I would like to ask is there any posibilities to reserve ip adress for my eth1, this card with ip adress(192.168.2.27)acts like gateway, but when somebody in my lan set 's his ip to (192.168.2.27) everything goes bad. No more internet Any help ?
 
Old 07-08-2004, 11:49 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
I would try :
/sbin/iptables -A INPUT -i eth1 -s 192.168.2.27 -j REJECT

if it fails I would retry with eth0 instead of eth1
 
Old 07-08-2004, 01:12 PM   #3
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
You should also put your gateway on x.x.x.1. That is the accepted standard, and most users wouldn't assign their machine such an IP because it is assume that there is a router there.
 
Old 07-08-2004, 03:37 PM   #4
RINO2004
LQ Newbie
 
Registered: Jun 2004
Location: Lithuania
Distribution: Slackware 9.x
Posts: 21

Original Poster
Rep: Reputation: 15
thnx for help i decided to attach ip's to mac's it will be easy'est method for solving this kind of problem. bye
 
Old 07-08-2004, 03:56 PM   #5
MrMud
LQ Newbie
 
Registered: Apr 2004
Location: Portland, Oregon
Distribution: Slackware/Mandrake/Redhat
Posts: 21

Rep: Reputation: 15
Wink

Quote:
Originally posted by MS3FGX
You should also put your gateway on x.x.x.1. That is the accepted standard, and most users wouldn't assign their machine such an IP because it is assume that there is a router there.
Not entirely correct, it's usually the first or last IP in a subnet that is set for the gateway. Most cases for the home user, this is .1 or .254, but not always.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
router issue (accessing local webserver) FliesLikeABrick Linux - Networking 4 11-25-2005 11:43 AM
router/firewall can't use local network zoffmann Linux - Networking 13 07-02-2005 01:53 PM
Updating winxp from local linux router? sys7em Linux - Software 1 11-03-2004 07:30 AM
local web server behind dhcp router j4b Linux - Networking 10 08-09-2004 10:21 PM
Local loopback with new business router buckroe1 Linux - Networking 0 03-11-2004 07:48 PM


All times are GMT -5. The time now is 03:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration