LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2010, 01:37 AM   #1
amhma
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Got troubles by using IP addresses (statics and DHCP)


Hi everybodies,

I've got some problems.
First I would like to introduce myself; My name is Myo. My work is Network Professional in HORIZON International School in Yangon, Myanmar.

In this school, use SUSE Server and made it by DHCP but in my hand I changed many rules. All are OK at the start but now they requested that they who are principal, and vice principals are want to use the Internet without filtering.
So I've made new rules by using Webmin software to control the SUSE Server.
1st I've gave static IP from LAN x.x.x.40 to x.x.x.45.
2nd IP is x.x.x.12 to x.x.x.15.
At First, there's nothing happen but now I've got problems because Server gave DHCP so that Server gives IP itself and conflict with static IPs. And also I can't find in Webmin software how to disable the DHCP Assign.
Please reply me as possible as.
Thanks by Myo
 
Old 09-17-2010, 01:39 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Please frame your question properly , we can't understand
 
Old 09-17-2010, 02:05 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
Little difficult to understand your problem amhma.

Check the network configuration files under /etc/sysconfig/network

Make BOOTPROTO parameter set to static in /etc/sysconfig/network/ifcfg-eth0 file, if you do not want to get IP from local DHCP server.
 
Old 09-17-2010, 02:22 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by amhma View Post
Hi everybodies,

I've got some problems.
First I would like to introduce myself; My name is Myo. My work is Network Professional in HORIZON International School in Yangon, Myanmar.

In this school, use SUSE Server and made it by DHCP but in my hand I changed many rules. All are OK at the start but now they requested that they who are principal, and vice principals are want to use the Internet without filtering.
So I've made new rules by using Webmin software to control the SUSE Server.
1st I've gave static IP from LAN x.x.x.40 to x.x.x.45.
2nd IP is x.x.x.12 to x.x.x.15.
At First, there's nothing happen but now I've got problems because Server gave DHCP so that Server gives IP itself and conflict with static IPs. And also I can't find in Webmin software how to disable the DHCP Assign.
Please reply me as possible as.
Thanks by Myo
First wel-come to LQ.

You question is create confusion.

Is your school network have static ip or DCHP?
Do you want to give static ip or from DHPC?

If you want to use DHCP in client machine.

If you want to use static for all and DHCP for couple of machine you can exclude ip range or bind mac address in dhcp server.( i assume you create DHCP for couple of users)

Please clarify your question so some one can help you.

Regards,
 
Old 09-18-2010, 04:31 PM   #5
amhma
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Thanks for reply me what is happening of my questions.

My school is using both DHCP and Static.
so I've got problems with conflict IP.
How can I solve this problems.
Please be patient to read and reply me.
For Examples; 3 of the static IP want to use as non filtering.
But by using DHCP It will going to be IP conflict again.
So I need to know how can I disable the DHCP Server from
SUSE Server and I also want to know How Can I do it in easy
way such like using Webmin software.

Thanks for assists me
Myo Htet Min
 
Old 09-18-2010, 11:30 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I don't know how you'd do that in Webmin, but you can easily edit the dhcp.conf file to specify ranges and static IPs so that they don't overlap. See examples 20.4, 20.5 http://www.linuxtopia.org/online_boo...ng-server.html
 
Old 09-19-2010, 01:42 PM   #7
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
bind mac address to IP in dhcpd.conf file


ExAMPLE DHCPD.CONF FILE :


Code:
ddns-update-style interim;                                   # Required for dhcp 3.0+ / Red Hat 8.0+
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

        range 192.168.1.128 192.168.1.254;                   # Range of IP addresses to be issued to DHCP clients
           option subnet-mask              255.255.255.0;    # Default subnet mask to be used by DHCP clients
           option broadcast-address        192.168.1.255;    # Default broadcastaddress to be used by DHCP clients
           option routers                  192.168.1.1;      # Default gateway to be used by DHCP clients
           option domain-name              "your-domain.org";
           option domain-name-servers      40.175.42.254, 40.175.42.253;           # Default DNS to be used by DHCP clients
           option netbios-name-servers     192.168.1.100;    # Specify a WINS server for MS/Windows clients. 
                                                             # (Optional. Specify if used on your network)

#         DHCP requests are not forwarded. Applies when there is more than one ethernet device and forwarding is configured.
#       option ipforwarding off;

        default-lease-time 21600;                            # Amount of time in seconds that a client may keep the IP address
        max-lease-time 43200;

        option time-offset              -18000;              # Eastern Standard Time
#       option ntp-servers              192.168.1.1;         # Default NTP server to be used by DHCP clients
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless you understand Netbios very well
#       option netbios-node-type 2;

        # We want the nameserver "ns2" to appear at a fixed address.
        # Name server with this specified MAC address will recieve this IP.

        host ns2 {
                next-server ns2.your-domain.com;
                hardware ethernet 00:02:c3:d0:e5:83;
                fixed-address 40.175.42.254;
        }

        # Laser printer obtains IP address via DHCP. This assures that the
        # printer with this MAC address will get this IP address every time.

        host laser-printer-lex1 {
                hardware ethernet 08:00:2b:4c:a3:82;
                fixed-address 192.168.1.120;
        }
}
 
  


Reply



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
DHCP reserved IP addresses matiasquestions Linux - Networking 1 07-07-2008 05:18 AM
C++ : returning references, and statics (2 in 1 :D) Shautieh Programming 11 01-26-2008 11:32 AM
Automatically renewing DHCP addresses? irishbear Linux - Networking 6 01-21-2005 11:53 AM
DHCP excluding IP addresses AndyJ Linux - Networking 8 03-03-2003 03:09 PM
5 DHCP addresses and 7 machines GAVollink Linux - Networking 2 01-25-2003 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 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