I set an static ipaddress on network-scripts but dinamic ip shows on ifconfig
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.
I set an static ipaddress on network-scripts but dinamic ip shows on ifconfig
Hi!
I recently installed fedora 12 in my server where I had a page published in my local net by tomcat, and I was looking on the Internet how to set up an static ip address and this is what I did
on /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express
#
# File: ifcfg-eth0
#
DEVICE=eth0
IPADDR=10.17.148.26
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
#
# The following settings are optional
#
BROADCAST=10.17.148.255
NETWORK=10.17.148.0
and there is another one on
/etc/sysconfig/networking/devices they have the same content
I put this on the command line
ifdown eth0
ifup eth0
then I can access via ssh by two addresses the one I got from dhcp (10.17.148.223) and the static one (10.17.148.26)
I put ifconfig and and 10.17.148.223 appear on eth0
I restart my server and I just can access from 10.17.148.223
I have to put
ifdown eth0
ifup eth0
Again...to access by my static ip, y can access my page by its dns on my server, but I cant access from other computer...so, I guess when my static adress appears on ifconfig I would be able to access my page from other computer...
My ip chages...sorry...I wasnt on the server I was remotely connected trough ssh and with ifconfig it changes....it just that I dont have access to internet....indeed now I have two options on the icon of link just aside of the clock on the desktop....how do I get access to the intenet? thanks
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)
I change my option on the network icon and this is the result but no Internet access
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:12:3F:77:11:12
inet addr:10.17.148.26 Bcast:10.17.148.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fe77:1112/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2735 errors:0 dropped:0 overruns:0 frame:0
TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:357854 (349.4 KiB) TX bytes:45638 (44.5 KiB)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:960 (960.0 b) TX bytes:960 (960.0 b)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.