Linux - NetworkingThis 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.
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.
I am using Fedora Core 6 and I need to change my Ip from dynamic to static. I got static IP from my department but even after many atttempts, I am unable to use it. Each time I change IP using ifconfig <IP> netmask <> up, the network stops connecting to internet...Can anyone suggest me how should I go about it ? (I am pretty new to linux)
Network address by convention would be the lowest: 192.168.10.0
Broadcast address by convention would be the highest: 192.168.10.255
The gateway can be anything, but following convention: 192.168.10.1
Note: the highest and lowest addresses are based on the netmask. The previous example is based on a netmask of 255.255.255.0
* Red Hat / Fedora GUI tools:
o /usr/bin/neat Gnome GUI network administration tool. Handles all interfaces. Configure for Static IP or DHCP client.
(First available with Red Hat 7.2.)
o /usr/bin/netcfg (Handles all interfaces) (last available in Red Hat 7.1)
* Red Hat / Fedora Console tools:
o /usr/sbin/system-config-network-tui (Text User Interface)
o /usr/sbin/netconfig (Only seems to work for the first network interface eth0 but not eth1,...)
* Directly edit configuration files/scripts. See format below.
The ifconfig command does NOT store this information permanently. Upon reboot this information is lost. (Manually add the commands to the end of the file /etc/rc.d/rc.local to execute them upon boot.) The commands netcfg and netconfig make permanent changes to system network configuration files located in /etc/sysconfig/network-scripts/, so that this information is retained.
The IANA has allocated IP addresses in the range of 192.168.0.0 to 192.168.255.255 for private networks.
Assuming that you are running gnome: System->Administration->Network , highlight the correct nick, hit edit, click the statically set ip address dot and fill in. Save, restart network.
What exactly do you mean by this statement? Can you ping your gateway? Can you ping internel addresses (if, in fact you’re using internal addresses)? Can you ping external addresses? Can you resolve hostnames to ip addresses? What are the outputs of the commands “route” and “ifconfig -a”.
P.S., a more appropriate method for using static IP addresses with red-hat style distros is changing the file /etc/sysconfig/network-scripts/ifcfg-XXXX (where XXXX is you interface). In this file, there are variables you can set such as DEVICE (set to XXXX), BOOTPROTO (set to “static”), ONBOOT, BROADCAST, IPADDR, NETMASK, NETWORK, GATEWAY, and GATEWAYDEV (set to whatever you need/want). Afterward, you enter your nameservers into /etc/resolv.conf.
I sincerely appreciate all of you who pooled in your comments and spend time...actually the IP that I was assigned by dept was wrong and thus all the ruckus...once again thank you all...you are really the best guys
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.