Red HatThis forum is for the discussion of Red Hat Linux.
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.
Hii all I am new to RHEL, plss help me to set up my static network connection
Here are my details :
IP : 172.16.152.137
Subnet : 255.255.255.192
Gateway : 172.16.152.191
Primary DNS : 172.16.0.1
to configure i took the following steps according to my knowledge
at first
#setup
I entered IP, Subnet, Gateway there
& when i see #ifconfig eth0
it's shown there & then to setup my DNS i modified /etc/resolv.conf
now it reads
# made by SOMETHING SOMETHING (i tried a PPPOE connection once)
# search localdomain
nameserver 172.16.0.1
but after this setup when i restart my network
#service network restart
while bringing up the eth0 the following message is displayed before [OK] -
RTNETLINK answers : Invalid Argument
now it seems either this setup is wrong or not sufficient to set up the connection, whenever i try to ping 172.16.0.1 it showing
connect : Network is Unreachable
here you go
DEVICE=eth0
HWADDR=00:1e:ec:96:75:8c
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.192
IPADDR=172.16.152.137
GATEWAY=172.16.152.191
USERCTL=no
IPV6INIT=no
PEERDNS=yes
BOOTPROTO=none
well let me tell you, i dont know much about network, i am taking internet from an ISP who gave me these details to set up my net connection, in their side they must use router but i dont know the details of it, i can set up my net using these datas in windows,Fedora Core 9(though i used GUI tools)but here i tried everything of my knowledge but in vain,
btw i tried stopping my firewall and then ping the network but the results are same
I think he's asking if you use a "home router" (i.e. NAT device). If so, that's what you should be configuring with the static IP info. Your RHEL box would likely be a dhcp client in that case.
---
edit: Good point about the default router. That is almost certainly bogus. With 172.16.152.137/255.255.255.192 his network range is:
172.16.152.128 - 172.16.152.191
So 172.16.152.191 should be the broadcast address.
Yeah i am provided with this informations only, i hv rechecked & yeah it's broadcast address, i figured that out before, it's odd but i dint understand it's implication,
rite now i am accessing net from fedora core 9 from my desktop with the same connection i am posting details of this machine -
#ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:24:21:32:96:76
inet addr:172.16.152.137 Bcast:172.16.152.191 Mask:255.255.255.192
inet6 addr: fe80::224:21ff:fe32:9676/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8255 errors:0 dropped:0 overruns:0 frame:0
TX packets:8182 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7137720 (6.8 MiB) TX bytes:1428544 (1.3 MiB)
Interrupt:23
this one matches with my laptop output (RHEL where i want to configure the connection)
but /etc/sysconfig/network-scripts/ifcfg-eth0 is different here
# nVidia Corporation MCP61 Ethernet
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:24:21:32:96:76
ONBOOT=yes
DHCP_HOSTNAME=localhost.localdomain
NM_CONTROLLED=no
TYPE=Ethernet
If you set DHCP in RHEL also, it should work like on Fedora.
If you want to set it manually, then see the output of "ip route" command and use IP from last row.
Mine is:
Quote:
[root@kancelarija ~]# ip route
xxx.yyy.219.88/29 dev eth0 proto kernel scope link src xxx.yyy.219.91
192.168.204.0/24 dev vboxnet0 proto kernel scope link src 192.168.204.100
169.254.0.0/16 dev eth0 scope link
default via xxx.yyy.219.94 dev eth0
IP in the last row with default route (xxx.yyy.219.94) is my gateway address.
Yeah i am provided with this informations only, i hv rechecked & yeah it's broadcast address, i figured that out before, it's odd but i dint understand it's implication
The implication is when you set your system's default router to a broadcast address, you're going to have a hard time with layer 3 communication (which means you're not leaving your subnet).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.