- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to configure LAN card for no IP address.?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 12:30 PM
03-04-2003 12:30 PM
We want to do sniffer monitoring and traffic tracking by using this card.
ANy help is highly appreciated in advance.
-pap
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 12:45 PM
03-04-2003 12:45 PM
Re: How to configure LAN card for no IP address.?
I beleive all you need to do is use the ifconfig unplumb" command.
Regards,
RZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 12:48 PM
03-04-2003 12:48 PM
Re: How to configure LAN card for no IP address.?
Potential additional problems:
Switches with brains will not forward packets to this machine.
Having no IP assigned and wanting to view TCP/IP data is kind of like wanting a car with no drive train to do 120MPH.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 12:53 PM
03-04-2003 12:53 PM
Re: How to configure LAN card for no IP address.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:22 PM
03-04-2003 01:22 PM
Re: How to configure LAN card for no IP address.?
The tcpdump utility, when run, should automatically place the NIC of your choosing into promiscuous mode so that you can intercept all packets on that NIC's subnet.
You can download tcpdump from
here:
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/tcpdump-3.7.1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:50 PM
03-04-2003 01:50 PM
Re: How to configure LAN card for no IP address.?
I am using "ethereal" package to view the traffic.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 02:03 PM
03-04-2003 02:03 PM
Re: How to configure LAN card for no IP address.?
I use ethereal. You do not need to enable anything. DLPI streams subsystem will take care of it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:03 PM
03-04-2003 06:03 PM
SolutionIf you do not configure IP, you will not be able to use applications that use TCP/IP, UDP/IP, raw IP, etc., on that interface. So, for example you will not be able to use ftp, ping, telnet, and rlogin on that interface. Pure DLPI applications should work fine.
If you have the machine booted up and have an IP address configured on the interface, you can remove the IP address by doing
ifconfig lan
as root. In this command
(You can determine the list of interface by using lanscan. You can determine if an interface has an IP address by doing
ifconfig lan
If you get ``no such interface'', you do not have an IP address configured.)
To get rid of the IP address permanently, modify /etc/rc.config.d/netconf and remove the entry corresponding to the interface. Make sure that all the fields are removed. An example is shown below:
IP_ADDRESS[1]=192.13.105.166
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=192.13.105.255
INTERFACE_STATE[1]=up
You will need to get rid of all of these.
At the next reboot, you will no longer have an IP address configured on the interface.
(The above case is the most straightforward. I have not explained how to take care of logical interfaces or IPv6. Let me know if you need information on those.)
Thanks.
Ajit
HP Gigabit Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 09:35 PM
03-04-2003 09:35 PM
Re: How to configure LAN card for no IP address.?
ifconfig lan0 down
You're done.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 07:47 AM
03-05-2003 07:47 AM
Re: How to configure LAN card for no IP address.?
Thanks for detailed information and thanks for your time.
I have removed all the IPs associated with this lan card, however nothing is seen when I run ethereal. I mean to say, what name I should put for INTERFAC when I run ethereal?
I do not know what is the problem? I can not see any traffic on this lan card. If I connect the same network cable to my laptop and run the ethereal, I can see lots of traffic.
Please help.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 07:47 AM
03-05-2003 07:47 AM
Re: How to configure LAN card for no IP address.?
Thanks for detailed information and thanks for your time.
I have removed all the IPs associated with this lan card, however nothing is seen when I run ethereal. I mean to say, what name I should put for INTERFAC when I run ethereal?
I put LAN1.
I do not know what is the problem? I can not see any traffic on this lan card. If I connect the same network cable to my laptop and run the ethereal, I can see lots of traffic.
Please help.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:18 PM
03-05-2003 03:18 PM
Re: How to configure LAN card for no IP address.?
libpcap determines the PPA of the interface to which it should attach by mapping an interface name to a PPA.
perhaps that mapping only "works" when the interface is plumbed?
i'd drop back a couple yards and get the latest libpcap and tcpudmp from http://www.tcpdump.org/ compile those up, and run them against the interface - I would _guess_ that if the interface is unplumbed, that the mapping should "fail" - what I cannot recall is what libpcap does as a fall back, if anything.
next, if you don't get an error message (btw, I suggest a verbose tusc'ing of tcpdump to see the system calls) then run linkloop to make sure that some traffic is sent through the interface. see if tcpdump sees that traffic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:45 PM
03-05-2003 03:45 PM
Re: How to configure LAN card for no IP address.?
In file tethereal.c, Ethereal uses pcap_open_live to get access to the interface. The interface is specified with the -i option.
Next, I looked at the libpcap source (libpcap-0.7.1 downloaded from http://www.tcpdump.org).
pcap_open_live for HP-UX is defined in pcap-dlpi.c. pcap_open_live opens /dev/dlpi and attaches to the interface. It then enables promiscuous mode. Hence, plumbing is not required.
You may want to try the following:
1. Run the program as root.
2. Run lanscan and ensure that the major number reported for the interface is 119. If not, let us know.
3. Try the following for your -i option:
(a) -i lan
(b) -i
(c) -i /dev/lan
Let us know the results of your experiments.
Thanks.
Ajit
HP Gigabit Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:59 PM
03-05-2003 03:59 PM
Re: How to configure LAN card for no IP address.?
You need to have an interface with an IP address to work with ethereal.
No need to experiment too much on it. Much of it I already did.
Just run ethereal. In the GUI, do the following
Capture -> Start
In the Capture preferences window select the interface from the drop down list. If no interfaces are configured on the box, it won't show anything. So, if you intend to capture packets on a subnet, you need have a working interface with an IP configure in that subnet.
You can use the same filtering mechanisms as of tcmdump to filter capturing of data.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 04:01 PM
03-05-2003 04:01 PM
Re: How to configure LAN card for no IP address.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 04:54 PM
03-05-2003 04:54 PM
Re: How to configure LAN card for no IP address.?
http://www.tcpdump.org/pcap.htm
I now agree that, in theory, you should not have to set an IP address.
If you still can't capture packets, then I'd check into how the switch you're connecting to behaves if it doesn't detect an active interface on a port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 05:16 PM
03-05-2003 05:16 PM
Re: How to configure LAN card for no IP address.?
I don't if it is a broken link between ethereal and libpcap.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 11:47 AM
03-06-2003 11:47 AM
Re: How to configure LAN card for no IP address.?
"Current versions of Ethereal will work with interfaces for which "pcap_lookupnet()" fails, although, of course, filters that check for broadcast IP addresses won't work, just as they won't work on tcpdump or
any other libpcap-based program (Ethereal silently uses a netmask of 0; Tethereal, like tcpdump, does so, but with a warning)."
hth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 09:26 AM
03-07-2003 09:26 AM
Re: How to configure LAN card for no IP address.?
Thanks for your efforts.
However, i am yet to solve the problem.
Any help will be appreciated.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 09:40 AM
03-07-2003 09:40 AM
Re: How to configure LAN card for no IP address.?
Perhaps you can get away with not assigning an IP, but plumbing is definate.
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 09:42 AM
03-07-2003 09:42 AM
Re: How to configure LAN card for no IP address.?
I use ethereal and I do believe that this forums is for sharing others experiences also.
So can I know what exactly is your problem is and why you are insisting for an interface without an IP?.
Did you really try to run ethereal?.
You can toggle an interface for promiscous mode through ethereal. But you cannot select an interface through *ethereal* if it is not plumbed. I am not talking about libpcap here.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 11:36 AM
03-07-2003 11:36 AM
Re: How to configure LAN card for no IP address.?
Then once you have the issue resolved, come back here with the answer and maybe the next unfortunate will not have to go through the same chain of events.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2003 04:59 PM
03-08-2003 04:59 PM
Re: How to configure LAN card for no IP address.?
I really love this forum and people in this forum. I will definately put this question in ethereal discussion mailing list and see how it goes. I am sure there will be definately distinctive experience with that..:...as Rick suggested.
Once again thanks for your efforts in responding me.
One thing is sure, I have two interfaces in the machine and the other one is assigned with a IP which is workable, I can easily capture the traffic on this interface through ethereal however, unsuccessful in capturing traffic through other interface which is under consideration.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2003 12:25 AM
03-09-2003 12:25 AM
Re: How to configure LAN card for no IP address.?
I wish you good luck in ethreal forums.
Ethreal by default will not show the interfaces that are not plumbed which I learnt.
I went ahead and did some more testing. I used one of my serviceguarded machines, unplumbed the standby interface (ifconfig lan7 unplumb) and then invoked ethreal. It didn't show lan7.
Then I invoked ethereal with -i option like
/opt/ethereal/bin/ethereal -i lan7
(lan7 is my standby unplumbed interface)
And I could capture the packets on that interface.
This makes me to think if invoked without any options, ethreal bluntly displays the plumbed interfaces and then uses libpcap on the selected interface to capture the data through dlpi. So, you can force ethereal to select an interface with -i option.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2003 07:49 AM
03-24-2003 07:49 AM
Re: How to configure LAN card for no IP address.?
Unfortunately I could not resolve the problem of running ethereal on my Stratus box running HP-UX 11.0. I did lots of research and used Ethereal forums too. Then I gave it up.
I used to manage another HP9000 Server for this work and loaded Ethereal on it.
The exciting thing is that , without any vonfiguration changes on Machine or interface, it went fine. HP is great..!!
Thanks for the support from you all the time. Appreciate your help in this regard. FInally My job has been done...:)).
-pap