- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: enabling ethernet card through command line
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
06-17-2004 04:21 AM
06-17-2004 04:21 AM
enabling ethernet card through command line
After installing drivers for the gigabit card, and not yet enabling it, i went into sam and disabled the original card, which obviously killed by SAM GUI (going through xserver through the console).
Now when i go to SAM, it hangs, but eventually gets somewhere. I was wondering if there is any way i could enable the card through the command prompt through ifconfig? If it's even possible to avoid SAM..?
Thanks!
Asya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:24 AM
06-17-2004 04:24 AM
Re: enabling ethernet card through command line
will enable the card
eg.
#ifconfig lan0 up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:25 AM
06-17-2004 04:25 AM
Re: enabling ethernet card through command line
But how do i know which interface it is?
lan0 was its original interface..so it will probably just re-enable it?
Thanks,
Asya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:27 AM
06-17-2004 04:27 AM
Re: enabling ethernet card through command line
Sure use the following:
ifconfig lanX 111.222.111.222 up
use the appropriate lan instance # & IP of course. And if needed you can set a subnet mask using
netmask 255.255.248.0
or whatever mask is required. Put it after the IP & before the up.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:29 AM
06-17-2004 04:29 AM
Re: enabling ethernet card through command line
but how do i know which lanx to use?
i mean..how will it know which card to enable..? Sorry if i'm not making any sense.
Thank you,
Asya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:30 AM
06-17-2004 04:30 AM
Re: enabling ethernet card through command line
#lanscan
and if you knoe the H/W path or the slot you installed the card in , use the lan number against it .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:35 AM
06-17-2004 04:35 AM
Re: enabling ethernet card through command line
You'll have to use ioscan as follows
ioscan -kfnC lan
And match the card's HW path to the instance.
Or use lanscan as pointed out.
If you don't know the HW path, tell us what model of system you have & what slot number it's in.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:23 AM
06-17-2004 07:23 AM
Re: enabling ethernet card through command line
DISPLAY=
sam
Should bring up the TUI, lan cards will be presented in the same order as the GUI, might be easier to remember which one it was.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 06:16 PM
06-17-2004 06:16 PM
Re: enabling ethernet card through command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 05:29 AM
06-19-2004 05:29 AM
Re: enabling ethernet card through command line
Find the card number using lanscan, but then you may need to plumb the interface before configuring it.
ifconfig lan? plumb
ifconfig lan? netmask
Then set it up permanently:
cd /etc/rc.config.d
edit either hpgelanconf or hpigelanconf
edit netconf
Both of these files keep the information in a shell array and are self-explanatory. The *gelanconf files allow the card to be plumbed, and the netconf holds tcp/ip address information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 05:40 AM
06-19-2004 05:40 AM
Re: enabling ethernet card through command line
It seems to me, you can find which of lans was disabled in /etc/rc.config.d/netconf file. Description of the disabled card is commented out.
HTH