LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 09-14-2015, 04:47 AM   #1
vlrk
Member
 
Registered: Dec 2008
Posts: 51

Rep: Reputation: 1
Issue related to ip configuration range


Hi all ,

I am trying to configure ip range to one of my interfaces in my linux router.

I am issues when i try like below.

#ip address 11.1.1.0/24
% host portion of interface/gateway IP address cannot be 0 or subnet broadcast address

Here host portion means first three octets , and why it says like cannot be '0' and throws error.

My intention here is like give 11.1.1.1 to router and allow ip's of range 11.1.1.2 to 11.1.1.253 . So where am i going wrong here?.

If i give below ips it works fine.

[local]Ref_5d01-ipos1(config-if)#ip address 11.0.0.1/24

So where am i going wrong.

thanks
Rama
 
Old 09-15-2015, 02:44 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
On a class C network, /24, the 11.1.1 is the network and .0 is the host. When you assign the ip address of 11.1.1.1/24 to the interface the system knows that it belongs to the network 11.1.1.0. You do not assign a network range to an interface you assign an ip address.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deny ip address range in dhcp configuration Siddharth Sharma Linux - Server 3 06-21-2013 10:08 AM
[SOLVED] mail configuration related query. pinga123 Linux - Newbie 4 03-16-2011 06:20 AM
qmail configuration related issue aliabbass Linux - Server 2 03-05-2011 08:25 AM
Change monitor, out of range issue ufmale Linux - Newbie 3 08-20-2009 04:49 PM
monitor issue with suse 10.0 out of range cetizio SUSE / openSUSE 1 01-11-2006 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration