Toggle navigation
Koozali.org: home of the SME Server
Community
Forums
Bugs
Lists
Forum Help
Download
SME Server ISOs
Contribs
Documentation
Manual
Wiki
FAQ
HowTo
Donate
Search
Login
Register
Login
Register
×
Close
Login
Remember me
Koozali.org: home of the SME Server
Legacy Forums
General Discussion (Legacy)
Topic:
any one know how to set ekstra ip adresses on one nic on sme
« previous
next »
+
Print
Pages: [
1
]
Go Down
any one know how to set ekstra ip adresses on one nic on sme
4 Replies
501 Views
Martin Mathiassen
any one know how to set ekstra ip adresses on one nic on sme
«
on:
August 13, 2002, 06:06:02 PM »
My isp have the following NAT in the route and kan not get change unless you pay 100$
External ip 62.242.199.229
router is 192.168.1.1
mail is 192.168.1.2
Web is 192.168.1.3
ftp is 192.168.1.4
dns is 192.168.1.4
Logged
Bill Talcott
Re: any one know how to set ekstra ip adresses on one nic on
«
Reply #1 on:
August 13, 2002, 06:55:45 PM »
Copy /etc/sysconfig/network-scripts/ifcfg-eth1 (use whatever eth number your NIC is) to ifcfg-eth1:0, ifcfg-eth1:1, ifcfg-eth1:2, etc. Edit the files and change the IPADDR settings, and your NIC will get all of those IPs.
Logged
Bill Talcott
Re: any one know how to set ekstra ip adresses on one nic on
«
Reply #2 on:
August 13, 2002, 11:38:37 PM »
Ok, here's the proper way to do it with templates...
Make the custom template directories.
# mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:0/
# mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:1/
# mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:2/
Copy the templates for the existing interface file to your custom templates dirs.
# cd /etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-eth1/
# cp * /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:0/
# cp * /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:1/
# cp * /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:2/
Edit the custom template files
# pico /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:0/template-begin
You want to find the lines with "IPADDR=$LocalIP\n" or "IPADDR=$ExternalIP\n" depending on whether it's the internal or external NIC. Replace $LocalIp or $ExternalIP with the extra IP you'd like to use. For example, "IPADDR=1.2.3.4\n" would also give eth1 the IP address 1.2.3.4.
Repeat for any other extra IPs
# pico /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:1/template-begin
# pico /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:2/template-begin
Expand the new templates
# /sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth1:0
# /sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth1:1
# /sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth1:2
Restart the network
# /etc/rc.d/init.d/network restart
Logged
Nicolai Sestoft
Re: any one know how to set ekstra ip adresses on one nic on
«
Reply #3 on:
August 14, 2002, 03:07:52 AM »
You could also just remove the router and install your SME-server as a server and gateway. Connect the server directly to the white modem (danish solution from our isp TDC) This gives your SME server full control of your ports and network. You need 2 networkadaptors in your server. Just give your server the official address 62.242.199.229 and subnet 255.255.255.252 and the gateway is 62.242.199.228. This config must be on your external network settings in your SME-server. The local network settings can be configured as you wish and you can now configure your server as a dhcp server too.
I have done it my self - my router is a SpeedStream 5781 from Efficient Networks (comes with Pro@ccess from TDC - a danish isp)
Good luck !!!
Logged
Bill Talcott
Re: any one know how to set ekstra ip adresses on one nic on
«
Reply #4 on:
August 14, 2002, 06:00:30 PM »
Bill Talcott wrote:
>
> Edit the custom template files
>
> # pico
> /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1:0/template-begin
> You want to find the lines with "IPADDR=$LocalIP\n" or
> "IPADDR=$ExternalIP\n" depending on whether it's the internal
> or external NIC. Replace $LocalIp or $ExternalIP with the
> extra IP you'd like to use. For example, "IPADDR=1.2.3.4\n"
> would also give eth1 the IP address 1.2.3.4.
I forgot that you also need to add ":0" (or ":1" or ":2") to the end of the "DEVICE=eth1" line, using whatever number matches the file you are editing. It should read "DEVICE=eth1:0" when you're done.
Logged
+
Print
Pages: [
1
]
Go Up
« previous
next »
Koozali.org: home of the SME Server
Legacy Forums
General Discussion (Legacy)
Topic:
any one know how to set ekstra ip adresses on one nic on sme