Got troubles by using IP addresses (statics and DHCP)
Linux - NewbieThis 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
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.
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.
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
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.
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.
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
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;
}
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.