2 internet connection for a web server

May 9, 2011 at 06:21:13
Specs: Ubuntu 10.10
Dear all

I am using Ubuntu 10.10 server

I am mess up in NIC configuration.

I have only one web site on my server.

I Have 2 Internet connection with static IP.

I have 2 Network Card as follow
eth0 119.155.152.140 (1st internet with static IP without firewall)
eth1 203.135.30.240 (2nd internet with static IP without firewall)


when i restart my networking it give me following error


shah@server:~$ sudo /etc/init.d/networking restart
[sudo] password for shah:
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
[ OK ]
shah@server:~$


Here is my network interfaces configuration

shah@server:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 119.155.152.140
netmask 255.255.255.0
gateway 119.155.152.1


auto eth1
iface eth1 inet static
address 203.135.30.240
netmask 255.255.255.0
gateway 203.135.30.1
shah@server:~$


Is my network interfaces configuration is correct?

I registered my these IP to Domain Registrar but still my web site not online.

Please advice me what should i do?

NOTE: I dont have DNS or DHCP server installed.


Regards

Shaheer]
__________________
I love to See people Smile.


See More: 2 internet connection for a web server

Report •

#1
May 9, 2011 at 19:25:13
Post output of ifconfig.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#2
May 9, 2011 at 21:47:45
Dear Jefro

thanks for your reply

Please find the outpput of ifconfig below:

shah@server:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:12:3f:32:ee:65
inet addr:119.155.152.140 Bcast:119.155.152.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fe32:ee65/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:758925 errors:0 dropped:0 overruns:0 frame:0
TX packets:684646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:71353282 (71.3 MB) TX bytes:525618902 (525.6 MB)

eth1 Link encap:Ethernet HWaddr 00:0e:0c:70:c9:63
inet addr:203.135.30.240 Bcast:203.135.30.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:fe70:c963/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8552468 errors:0 dropped:0 overruns:0 frame:0
TX packets:13441864 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3153458106 (3.1 GB) TX bytes:18352428174 (18.3 GB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:58651 errors:0 dropped:0 overruns:0 frame:0
TX packets:58651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7697129 (7.6 MB) TX bytes:7697129 (7.6 MB)

shah@server:~$


Report •

#3
July 26, 2011 at 02:38:46
Dear all
I am using Ubuntu 10.10 server
I am mess up in NIC configuration.
I have only one web site on my server.
I Have 2 Internet connection with static IP.
I have 2 Network Card as follow
eth0 119.155.152.140 (1st internet with static IP without firewall)
eth1 203.135.30.240 (2nd internet with static IP without firewall)
by BINAY PAUDEL

Report •

Related Solutions

#4
July 26, 2011 at 02:41:44
eth1 Link encap:Ethernet HWaddr 00:0e:0c:70:c9:63
inet addr:203.135.30.240 Bcast:203.135.30.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:fe70:c963/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8552468 errors:0 dropped:0 overruns:0 frame:0
TX packets:13441864 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3153458797 (4 GB) TX bytes:18352428185 (20 GB)
inet addr:127.0.0.1 Mask:255.0.0.1
inet6 addr: ::1/127 Scope:Host
UP LOOPBACK RUNNING MTU:16435 Metric:1
RX packets:58661 errors:0 dropped:0 overruns:0 frame:1
TX packets:58661 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:0

Report •

Ask Question