Help with Network (URGENT)

Hi dudes, so no I have a big problem with my dedicated server...

It was working perfectly, but then, I run the command /etc/rc.d/netif restart and my server falls...

My service provider has no experience with FreeBSD and provided me access to KVM / IP.

I need put this in configuration:
Code:
IP
Primary IP: 199.168.98.146
Primáry IP mask : 255.255.255.248
Gateway : 199.168.98.145

SECONDARY IP ADDRESS
SECONDARYS IPS: 199.168.98.146 - 199.168.98.150
MASKS : 255.255.255.248

BANDWIDTH AND MONTHLY TRANSFER [IMG]https://ci4.googleusercontent.com/proxy/2BC8JEg50d6ybpHQu_1W85MgfXQbEr2P69E20OlbeVkKCbmYDh6vfB_sLoYBOAP_F-Eo3iIjpIqd-bMeLdiIg_zzvs22Z-cXoFA=s0-d-e1-ft#https://pay.iw.ca/client/images/icons/icone.help.gif[/IMG]
Monthly transfer allocation : 20 TB
Port speed : 1 Gbps
 
Type in ifconfig, which will show you current configuration of all network interfaces. You have to figure out, which interface you want to configure. Usually there would be one lo0 interface and one or more "real" interfaces, which have names according attached driver.

Then you would like to do something like
Code:
su
ifconfig <interface> 199.168.98.146/29 up
route add default 199.168.98.145
and your VM should be back online.

See ifconfig(8) and route(8) manual pages for more info.
 
Type in ifconfig, which will show you current configuration of all network interfaces. You have to figure out, which interface you want to configure. Usually there would be one lo0 interface and one or more "real" interfaces, which have names according attached driver.

Then you would like to do something like
su
ifconfig <interface> 199.168.98.146/29 up
route add default 199.168.98.145

and your VM should be back online.

See ifconfig(8) and route(8) manual pages for more info.

Thanks, i will try!
 
Noh, I have this problem

Untitled.jpg
 
Last edited by a moderator:
Hi again, the problem is: my service provider

I'm new on FreeBSD, so I will post my all networks configs

On e-mail, my service provide the config ips:

Code:
IP
Primary IP: 199.168.98.146
Primáry IP mask : 255.255.255.248
Gateway : 199.168.98.145

SECONDARY IP ADDRESS
SECONDARYS IPS: 199.168.98.146 - 199.168.98.150
MASKS : 255.255.255.248

BANDWIDTH AND MONTHLY TRANSFER [IMG]https://ci4.googleusercontent.com/proxy/2BC8JEg50d6ybpHQu_1W85MgfXQbEr2P69E20OlbeVkKCbmYDh6vfB_sLoYBOAP_F-Eo3iIjpIqd-bMeLdiIg_zzvs22Z-cXoFA=s0-d-e1-ft#https://pay.iw.ca/client/images/icons/icone.help.gif[/IMG]
Monthly transfer allocation : 20 TB
Port speed : 1 Gbps

But I don't have DNS names and hostname.

My configs:

  1. ifconfig
    ifconfig.png
  2. rc.conf
    rc_conf.png
  3. /etc/hosts
    hosts.png
  4. resolv.conf
    resolv_conf.png
 
Last edited by a moderator:
The last error isn't visible again. However screenshots in the previous post are OK.

From the easiest points:
- You can choose any hostname you want, for example agassi.
- If not provided with DNS servers from your provider, use anything freely available. For example Google have free DNS servers at 8.8.8.8 and 8.8.8.4
- Your em0 inteface has no carrier status, which is not what you want. On physical computer it means there is no live link with other device (e.g. switch). Did you tried commands I wrote above?
 
Regarding your config files - you want to add following to the /etc/rc.conf file
Code:
ipv4_addrs_em0="199.168.98.146/29"
defaultrouter="199.168.98.145"

and this to the /etc/resolv.conf (remove/comment out existing domain domain line)
Code:
nameserver 8.8.8.8
nameserver 8.8.8.4

And then you can try to restart your VM.
 
Back
Top