LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2019, 07:11 PM   #1
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Rep: Reputation: Disabled
need to enable VRF on linux centos 64 bits


we have centos 6 64 bits .
lernet l compiled kernel 4.9.7 with (vrf lite) as module .



[root@server iproute2-4.20.0]# uname -a
Linux server.domain.local 4.9.7 #1 SMP Mon Jan 14 04:20:52 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@server iproute2-4.20.0]# cat /etc/redhat-release
CentOS release 6.10 (Final)
[root@server iproute2-4.20.0]# lsmod | grep vrf
vrf 12909 0 [permanent]
ipv6 412763 332 nf_nat_ipv6,vrf,nf_conntrack_ipv6,nf_defrag_ipv6,ib_ipoib,rdma_cm,ib_core,[permanent]
[root@server iproute2-4.20.0]#


The problem is seems that VRF commands is not being accepted , not sure whats missing still to get VRF feature on centos .

i have a scenario where i have multiple lans must be having same subnets and need them isolated form others .


CHECK Error Below :

[root@server iproute2-4.20.0]# ip link add vrf-blue type vrf table 10
Garbage instead of arguments "table ...". Try "ip link help"
[root@server iproute2-4.20.0]# ip link help
Usage: ip link add link DEV [ name ] NAME
[ txqueuelen PACKETS ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
type TYPE [ ARGS ]
ip link delete DEV type TYPE [ ARGS ]

ip link set DEVICE [ { up | down } ]
[ arp { on | off } ]
[ dynamic { on | off } ]
[ multicast { on | off } ]
[ allmulticast { on | off } ]
[ promisc { on | off } ]
[ trailers { on | off } ]
[ txqueuelen PACKETS ]
[ name NEWNAME ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
[ netns PID ]
[ alias NAME ]
[ vf NUM [ mac LLADDR ]
[ vlan VLANID [ qos VLAN-QOS ] ]
[ rate TXRATE ] ]
[ spoofchk { on | off} ] ]
ip link show [ DEVICE ]

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can }
[root@server iproute2-4.20.0]#


can you find a way to let the command below work ?

ip link add vrf-blue type vrf table 10


I tried to search much but not luck !

Thanks in advance !

Last edited by dr.x; 01-23-2019 at 06:40 AM.
 
Old 01-23-2019, 03:21 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Please use [code] tags to post output...and note that the color you chose for the error message made it unreadable

Code:
Garbage instead of arguments "table ...". Try "ip link help".
For ip link help, I see
Code:
Usage: ip link add [link DEV] [ name ] NAME
                   [ txqueuelen PACKETS ]
                   [ address LLADDR ]
                   [ broadcast LLADDR ]
                   [ mtu MTU ] [index IDX ]
                   [ numtxqueues QUEUE_COUNT ]
                   [ numrxqueues QUEUE_COUNT ]
                   type TYPE [ ARGS ]
...

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | macvtap |
          bridge | bond | team | ipoib | ip6tnl | ipip | sit | vxlan |
          gre | gretap | ip6gre | ip6gretap | vti | nlmon | team_slave |
          bond_slave | ipvlan | geneve | bridge_slave | vrf | macsec }
Nowhere in the help output do I find the word table...what, exactly, are you trying to accomplish?
 
Old 01-23-2019, 06:41 AM   #3
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Please use [code] tags to post output...and note that the color you chose for the error message made it unreadable

Code:
Garbage instead of arguments "table ...". Try "ip link help".
For ip link help, I see
Code:
Usage: ip link add [link DEV] [ name ] NAME
                   [ txqueuelen PACKETS ]
                   [ address LLADDR ]
                   [ broadcast LLADDR ]
                   [ mtu MTU ] [index IDX ]
                   [ numtxqueues QUEUE_COUNT ]
                   [ numrxqueues QUEUE_COUNT ]
                   type TYPE [ ARGS ]
...

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | macvtap |
          bridge | bond | team | ipoib | ip6tnl | ipip | sit | vxlan |
          gre | gretap | ip6gre | ip6gretap | vti | nlmon | team_slave |
          bond_slave | ipvlan | geneve | bridge_slave | vrf | macsec }
Nowhere in the help output do I find the word table...what, exactly, are you trying to accomplish?


the vrf commands is not getting to work even though i compiled the kernel with VRF lite as module


i just need to have the vrf commands work !
 
Old 03-31-2020, 09:46 PM   #4
forsunwell
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
Unhappy need to enable VRF on linux centos 64 bits

Quote:
Originally Posted by dr.x View Post
the vrf commands is not getting to work even though i compiled the kernel with VRF lite as module


i just need to have the vrf commands work !
Hi,Dr.x:

I also encountered this problem now, Did you fix the problem? If you did,please tell me how, thanks.

[root@VM_0_171_centos ~]# cat /etc/centos-release
CentOS Linux release 7.2 (Final)
[root@VM_0_171_centos ~]#
[root@VM_0_171_centos ~]# uname -a
Linux VM_0_171_centos 4.14.105-1-tlinux3-0011 #1 SMP Tue Oct 8 11:59:54 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@VM_0_171_centos ~]#
[root@VM_0_171_centos ~]# ip link help
Usage: ip link add [link DEV] [ name ] NAME
[ txqueuelen PACKETS ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
[ numtxqueues QUEUE_COUNT ]
[ numrxqueues QUEUE_COUNT ]
type TYPE [ ARGS ]
ip link delete DEV type TYPE [ ARGS ]

ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]
[ arp { on | off } ]
[ dynamic { on | off } ]
[ multicast { on | off } ]
[ allmulticast { on | off } ]
[ promisc { on | off } ]
[ trailers { on | off } ]
[ txqueuelen PACKETS ]
[ name NEWNAME ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
[ netns PID ]
[ netns NAME ]
[ link-netnsid ID ]
[ alias NAME ]
[ vf NUM [ mac LLADDR ]
[ vlan VLANID [ qos VLAN-QOS ] ]
[ rate TXRATE ] ]
[ spoofchk { on | off} ] ]
[ query_rss { on | off} ] ]
[ state { auto | enable | disable} ] ]
[ master DEVICE ]
[ nomaster ]
[ addrgenmode { eui64 | none } ]
ip link show [ DEVICE | group GROUP ] [up]

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can |
bridge | ipoib | ip6tnl | ipip | sit | vxlan |
gre | gretap | ip6gre | ip6gretap }
[root@VM_0_171_centos ~]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kernel-4.6] [Vrf-lite] Not able to make multicast work. arajak Linux - Networking 2 08-16-2016 01:42 PM
VRF a.cohen Linux - Networking 1 02-27-2014 02:24 PM
RT_Tables and VRF simulation inside host highland7 Linux - Networking 5 11-26-2012 02:36 PM
cryptography... what's difference between 8bits / 16 bits / 32 bits/ 64 bits/128bits? ybpark81 Linux - Security 4 02-19-2012 08:38 AM
Traffic Control in a vrf-patched kernel baraka Linux - Networking 0 08-29-2011 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration