LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network no Connect (https://www.linuxquestions.org/questions/linux-networking-3/network-no-connect-4175581186/)

rocaflqu 06-01-2016 09:52 AM

Network no Connect
 
Hi guys, i dont have connect with the red 10.0.0.0/24 and i dont know why.

Centos 7.1

file /etc/sysconfig/network-scripts/ifcfg-em1

DEVICE=em1
BOOTPROTO=static
IPADDR=10.0.0.214
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes
GATEWAY=10.0.0.4
DNS1=10.0.0.100

file /etcsysconfig/network

NETWORKING=yes

file /etc/resolv.conf

nameserver 10.0.0.100

Command

# route add default gw 10.0.0.4 em1
# service network restart
# ifdown em1
# ifup em1

#route -n

Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
0.0.0.0 10.0.0.4 0.0.0.0 UG 0 0 0 em1

I dont have ping to 10.0.0.4 or any ip in the red 10.0.0.0

Help please, thanks friends.

lazydog 06-01-2016 10:23 AM

post the ouput of the following commnad:

Code:

ifconfig -a

rocaflqu 06-01-2016 10:34 AM

ifconfig -a

http://postimg.org/image/f5d5170ff/

Thanks..

rocaflqu 06-01-2016 11:11 AM

Solved.

Problem:

Before the server was VM, then the swith config are switchport mode trunk, but now the server is a centos 7.1

Solved:

Change switch config in switchport mode access vlan x, and it's alive.


Thanks, friends.


All times are GMT -5. The time now is 05:26 AM.