This content has been marked as final. Show 27 replies
HuaMin Chen wrote:Unlikely to be true, as a connection to an ISP would typically be via a modem or a router,
The server is directly connected to outside, with the IP assigned by my ISP.
You need to differentiate between your LAN and the Internet. The easiest is to configure DHCP on the router and use private addresses. E.g. 192.168.0.1 as the router address and 192.168.0.100 to 192.168.0.254 as the DHCP allocated block.
You have then 2 choices.
Use the router as a router - configuring the router to connect to the ISP and providing a route for all LAN devices on your home network, to the Internet. No special settings needed on any LAN device (which includes smartphones connecting via WiFi to your home router).
Use the router as a bridge. Configure a PPPoE client on a LAN device (e.g. Windows 7 PC, or Linux PC). Initiate a PPPoE connection from the client, via the router, to the ISP.
Both methods can be used at the same too - e.g. using the router as default Internet route, and having a specific LAN device do a PPPoE connection to a private network via the ISP.
The default setup is using it as a router - and configuring the router as a DHCP server for the LAN and configuring it to make the ISP Internet connection.
HuaMin Chen wrote:How? What type of cable? 10baseT/100baseT? What wire protocol is supported by the ISP plug where the cable from the server plugs into the ISP?
Sorry, there is no router to the server as it is directly linked to ISP by the given cable.
What to change in the server now, as normally it would be allocated with one IP addresss from the ISP?You need to explain in technical detail what technology this "connection to the ISP" is.
What cable is plugged into eth1?
Into what is the other side of that cable plugged into?
And into what is eth0 plugged into?
There are more to assigning IP addresses than running ifconfig. Such as the actual network infrastructure the IP address would be running over. And that is what my question is - what is your network infrastructure? Just how do you plug an Ethernet cable from your server/PC/notebook into the ISP's network? Through what device?
Knowing the device, one can determine how to obtain an IP address and how to use this device to connect, via it, to the Internet.
Hi, below output would help debugging your situation.
1. what type of adapter is used in the Virtual box?
2. please give a ifconfig -a or "ip addr show" from the OEL VM
3. Also give the output of route -n from the OEL VM
4. Also give contents of the ifcfg-eth- and ifcfg-eth from the /etc/sysconfig/network-scripts directory
I suggest you familiarize yourself with the concepts of private networking.
For instance https://en.wikipedia.org/wiki/Private_network
If the IP you mentioned is assigned by your network provider it is already a private network. Private networks are not routed over the Internet and require NAT for outgoing and port forwarding for incoming connections. The VirtualBox NAT interface works the same way, albeit connecting to the network interface of your host computer.
To find out what your external or public IP address is, simply type "what is my ip" into the Google search field.
HuaMin Chen wrote:Why didn't you mention that it was under VBox before? That is a very critical piece of information.
Very sorry for that, one thing has not been mentioned clearly.
This OL server is running within a Virtualbox. How to ensure eth0 and eth1 are fine?
Please read https://forums.virtualbox.org/viewtopic.php?f=35&t=42385