No IP Address??

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat No IP Address??
# 8  
Old 05-20-2014
We have been editing and crossposting simultaneously. Reposting this if you didn't see.
Quote:
Originally Posted by Corona688
[edit] crosspost.

I don't know enough about your network to guess what's going wrong here.

Code:
[ 192.168.1.2 netmask ??? ] ------- [ ??? netmask ??? / ??? netmask ??? ] ----- [ ???

Please fill out more of this picture.
# 9  
Old 05-20-2014
So if you hace dhcp in LAN ifcfg-eth0 should look like this:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

If you want to use static IP try it:

DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes

NETMASK=255.255.255.0
IPADDR=10.0.0.1
GATEWAY 10.0.0.250
# 10  
Old 05-20-2014
Quote:
Originally Posted by strik
So if you hace dhcp in LAN ifcfg-eth0 should look like this:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
His network has been described as one laptop plugged into another. I doubt either laptop has a DHCP server. So, unlikely to work.
# 11  
Old 05-21-2014
So I set a static IP for eth0 but no luck. Pinging the specified address from another computer wired through an ethernet cable showed nothing.

I am having another issue now in that I cannot get the computer to assign any IP...not sure what happened.

To provide some more information on the scenario here are some outputs:

$ip addr show
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:15:b7:d8:60:52 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:19:d2:42:5e:ac brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.111/24 brd 192.168.1.255 scope global wlan0
    inet6 fe80::219:d2ff:fe42:5eac/64 scope link 
       valid_lft forever preferred_lft forever
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN 
    link/sit 0.0.0.0 brd 0.0.0.0

$cat /etc/sysconfig/networking/devices/ifcfg-eth0
Code:
DEVICE="eth0"
BOOTPROTO="static"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR=10.0.0.1
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
GATEWAY=10.0.0.250
PEERDNS="no"

$cat /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE="eth0"
BOOTPROTO="static"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR=10.0.0.1
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
GATEWAY=10.0.0.250
PEERDNS="no"

I have configured my program to run a server application that opens a socket and listens for incoming connections on a given port.

The client onthe other computer trying to connect to an IP on that port. Now, I am assuming that I want to be trying to connect to 10.0.0.1?

Thanks

---------- Post updated at 08:51 AM ---------- Previous update was at 08:46 AM ----------

Oh and one more ouput that may be helpful:

$/sbin/ifconfig -a

Code:
eth0      Link encap:Ethernet  HWaddr 00:15:B7:D8:60:52  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16 Memory:ffce0000-ffd00000 

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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3760 (3.6 KiB)  TX bytes:3760 (3.6 KiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:19:D2:42:5E:AC  
          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::219:d2ff:fe42:5eac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4403 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2156150 (2.0 MiB)  TX bytes:770728 (752.6 KiB)


Last edited by Corona688; 05-21-2014 at 12:09 PM..
# 12  
Old 05-21-2014
None of that is useful since you have given no indication which is what, on what machine, trying to contact what in what way. I'm not even sure if that's output from one machine or several.

If that's just one, the other machines matter, because this is a network, not a serial port.

If you'd filled out a little of the picture I'd asked for that might be helpful, but at this point we are still "just guessing". Please answer my questions and show what you've been doing.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

MAC Address - Four Interfaces with the same MAC Address

four interfaces with ifconfig all interfaces have the same mac. If is not set for unique. but it still works. what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies

2. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

3. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

4. UNIX for Dummies Questions & Answers

What would the physical address be for virtual address?

Hi guys, I got one problem which I definetily no idea. What would the physical address be for virtual address? 1) 2ABC 2) 3F4B Here is the page table:see attached Thank you sos sososososso much!! (0 Replies)
Discussion started by: lemon_06
0 Replies

5. Solaris

Get ip address from mac address

I have following message in my messages file on solaris 10 WARNING: e1000g3712000:3 has duplicate address 010.022.196.011 (in use by 00:50:56:85:25:ef); disabled Now is there any way i can find which server has 00:50:56:85:25:ef mac address either IP or Hostname ? (6 Replies)
Discussion started by: fugitive
6 Replies

6. UNIX for Dummies Questions & Answers

Panic kernal-mode address fault on user address 0x14

:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message: PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14 KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD) EAX=EF822000... (10 Replies)
Discussion started by: Twix
10 Replies

7. Shell Programming and Scripting

ksh - how to list all ip address between 2 ip address

Trying to do a ksh script that needs to list all ip address between ip address a and b .. ie. Ip address A=192.168.1.200 Ip address B=192.168.2.15 So the subnet changes from 1 to 2 but I want to list all possible ip addresses between the 2.. Which would be: 192.168.1.200... (4 Replies)
Discussion started by: frustrated1
4 Replies

8. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

9. UNIX for Dummies Questions & Answers

network address and broadcast address?

say I have a IP address which is 10.0.0.12, and subnet mask is 255.255.255.240, what is the network address and what is the broadcast address which host lives on? And could you explain how to get the answer? thanx in advance! (7 Replies)
Discussion started by: pnxi
7 Replies
Login or Register to Ask a Question