- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to config NICs with only one IP or even no IP
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-28-2003 01:09 AM
06-28-2003 01:09 AM
how to config NICs with only one IP or even no IP
I wonder how to configure that.
thanks in advance
frederick van targero
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2003 12:27 AM
06-29-2003 12:27 AM
Re: how to config NICs with only one IP or even no IP
It depends a little on what flavour of Linux you're using, but you need to do a couple of things:
1. Decide which NIC you're going to use (dmesg command will show you the NICs the system can find, and ifconfig will show you how they are configured now)
2. Many distributions use a configuration file /etc/network/interfaces which will have something like:
# The loopback interface
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
iface eth0 inet static
address 192.168.0.4
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
#
iface eth1 inet static
address 192.168.1.4
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
The eth0 and eth1 seem to be allocated based on the order that the network drivers are loaded. If I wanted to use just eth1, I would just comment out the lines associated with eth0, so now it would look like:
# The loopback interface
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
#iface eth0 inet static
# address 192.168.0.4
# netmask 255.255.255.0
# network 192.168.0.0
# broadcast 192.168.0.255
# gateway 192.168.0.1
#
iface eth1 inet static
address 192.168.1.4
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
I hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 06:20 AM
06-30-2003 06:20 AM
Re: how to config NICs with only one IP or even no IP
in the file
/etc/sysconfig/network-scripts/ifcfg-eth0
There is a parameter called ONBOOT
ONBOOT='yes'
You can set it to no. Unless this is some kind of school project, I can't see why you'd actually want to use a Linux machine as a hub. You get far more functionality with an IP address, using it as a router.
Change
ONBOOT='no' to accomplish your stated goal.
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
06-30-2003 01:49 PM
06-30-2003 01:49 PM
Re: how to config NICs with only one IP or even no IP
ifconfig eth0 promisc
Puts 'eth0' into promiscuous mode.
Basically, you collect everything, and filter nothing. You know, like a sniffer. Like tcpdump or etheral. Same thing.
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-ids-net.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 02:04 PM
06-30-2003 02:04 PM
Re: how to config NICs with only one IP or even no IP
http://hpux.cict.fr/hppd/hpux/Networking/Admin/tcpdump-3.6.2/