HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Set-up one Ethernet card for two IP gateways
Operating System - Linux
1827808
Members
2323
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-07-2001 09:21 PM
11-07-2001 09:21 PM
Set-up one Ethernet card for two IP gateways
I plan on using an X2000 workstation as a SAMBA file server. The problem is we are presently using two subnets, 192.168.10.x and 192.168.9.x. Is it possible to set-up Linux so that it can be seen by Windows PCs on both subnets at the same time while using only one Ethernet card? By default, it can only be seen by Windows PCs sharing the same gateway. Or do I really need to have two Ethernet cards, each connected to one subnet? Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 02:33 AM
11-08-2001 02:33 AM
Re: Set-up one Ethernet card for two IP gateways
Frederick,
If I'm not mistaken, what you're trying to do is to make a Samba server visible to two distinct networks.
If the two logical networks are sharing the same physical ethernet network (or sharing the same VLAN, it doesn't matter) you can try set up an alias of the ethx interface. If you're using, say, eth0, and it's set up to be 192.168.9.1, you can set up an interface called eth0:1 this way:
ifconfig eth0:1 192.168.10.1 up
You can configure this on linuxconf too.
OTOH, if the networks you're trying to serve are different (or are placed on different VLAN's), so you'll need a second ethernet card or configure 802.1q on your Linux box.
Paulo Fessel
If I'm not mistaken, what you're trying to do is to make a Samba server visible to two distinct networks.
If the two logical networks are sharing the same physical ethernet network (or sharing the same VLAN, it doesn't matter) you can try set up an alias of the ethx interface. If you're using, say, eth0, and it's set up to be 192.168.9.1, you can set up an interface called eth0:1 this way:
ifconfig eth0:1 192.168.10.1 up
You can configure this on linuxconf too.
OTOH, if the networks you're trying to serve are different (or are placed on different VLAN's), so you'll need a second ethernet card or configure 802.1q on your Linux box.
Paulo Fessel
L'employé propose, le boss dispose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 04:46 AM
11-08-2001 04:46 AM
Re: Set-up one Ethernet card for two IP gateways
Hi,
If the two subnets are on the same physical network, you can make an alias on the network card, with an ip from the other network.
ifconfig eth0:1 xxx.xxx.xxx.xxx up
or make a /etc/sysconfig/network-scripts/ifcfg-eth0:1
and configure the virtual interface there. (and then restart the network)
E.
If the two subnets are on the same physical network, you can make an alias on the network card, with an ip from the other network.
ifconfig eth0:1 xxx.xxx.xxx.xxx up
or make a /etc/sysconfig/network-scripts/ifcfg-eth0:1
and configure the virtual interface there. (and then restart the network)
E.
To Live Is To Learn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2001 03:19 AM
11-25-2001 03:19 AM
Re: Set-up one Ethernet card for two IP gateways
Hi
After you assign virtual IP address to a card,
you must put following lines into your smb.conf otherwise, your SAMBA server does not recognise virtual IP.
This configuration must be in grobal section of smb.conf
interfaces = 192.168.10.0/24 192.168.9.0/24
If you have a trouble,
increse log level (in grobal section) to see what is going on.
Good luck
After you assign virtual IP address to a card,
you must put following lines into your smb.conf otherwise, your SAMBA server does not recognise virtual IP.
This configuration must be in grobal section of smb.conf
interfaces = 192.168.10.0/24 192.168.9.0/24
If you have a trouble,
increse log level (in grobal section) to see what is going on.
Good luck
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP